1.0.4 • Published 3 years ago

makeroutefile v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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
}
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago