Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 14, 2020 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/4bc4f113b85e4d7bd1f6658bb33213e0 to your computer and use it in GitHub Desktop.
Save velotiotech/4bc4f113b85e4d7bd1f6658bb33213e0 to your computer and use it in GitHub Desktop.
import { Router } from 'express';
import UserRouter from './Users';
// Init router and path
const router = Router();
// Add sub-routes
router.use('/users', UserRouter);
// Export the base-router
export default router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment