1.0.4 • Published 3 years ago
makeroutefile v1.0.4
Make Route Files via Express Router
Installation
const makeRouterFile = require('makeroutefile')
makeRouterFile()
Development
$ node main -create-new-route filename
For example :
$ node main -create-new-route Login
It will create LoginRoute.js file with router codes in routes folder. In LoginRoute.js file will be this codes
//Route configs of Login
const router = require('express').Router()
router.get('/',(req,res) => {
res.render("login")
})
module.exports = {
path:"/login",
router
}