routergroup
v1.0.0
Published
A simple express router grouping utility
Downloads
7
Readme
Simple Router Group Express
A utility function for Express.js to group routes.
Installation
npm install routergroup
Usage
const express = require("express");
const group = require("routergroup");
const routes = express.Router();
routes.use(group("/test", routes => {
router.get('', (req, res) => res.send('Test'))
router.get('/ok', (req, res) => res.send('Test path ok'))
}));