Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to apply authMiddleware for all the routes in userRoute? #196

Open
cuongnv-dev opened this issue Dec 31, 2022 · 1 comment
Open

How to apply authMiddleware for all the routes in userRoute? #196

cuongnv-dev opened this issue Dec 31, 2022 · 1 comment
Assignees
Labels

Comments

@cuongnv-dev
Copy link

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.

@dap23
Copy link

dap23 commented Apr 6, 2023

private initializeRoutes() {
this.router.use(/Your middleware/)
}

hope this can help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants