Created
September 25, 2019 09:48
-
-
Save kusakawazeusu/99d06f38325dabf3e20d372fd34f0ca5 to your computer and use it in GitHub Desktop.
applying a middleware to a whole route file
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
// src/routes/auth.route.ts | |
this.router.use(AuthMiddleware); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment