express-form-router
Form lifecycle scaffolding in express.
Options
The following functions must be provided on an options
object:
init
: Initialization middleware run on GET and POST.validate
: Validation function run on POST.process
: Processing middleware run on POST.render
: Rendering middleware run on GET and POST.
Example
const formRouter = ; app;