Created
July 14, 2020 10:24
-
-
Save velotiotech/4bc4f113b85e4d7bd1f6658bb33213e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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