Skip to content

Instantly share code, notes, and snippets.

Created Jul 14, 2020
What would you like to do?
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