Open cuongnv-dev opened 1 year ago
How to apply authMiddleware for all the routes in userRoute?
I want to apply authMiddleware for all the routes in userRoute, currently I were add authMiddleware inside each route.
private initializeRoutes() { this.router.use(/Your middleware/) }
hope this can help
Summary (요약)
How to apply authMiddleware for all the routes in userRoute?
Additional Details (추가적인 세부 사항)
I want to apply authMiddleware for all the routes in userRoute, currently I were add authMiddleware inside each route.