1.0.4 • Published 4 years ago

makeroutefile v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 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

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago