Skip to content

tomasKavan/derouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm

derouter

Declaratory router for express js

#Run

index.js file of app

import express from 'express' // import express
import derouter from 'derouter' // import derouter
import bodyParser from 'body-parser' // import body-parser

const app = express() // setup express app

/**
 * Set body parsers
 */
app.use(bodyParser.urlencoded({ extended: false, limit: '50mb' }));
app.use(bodyParser.json({ limit: '50mb' }));

/**
 * Load routes
 */
const routerDir = './src/routes/routes'

/**
 * 
 */
app.use(derouter(routerDir))

About

Declaratory router for express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published