We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now:
r := new(route.Router) r.HandleFunc("/users/?", errorHandler(authorizeHandler(usersHandler))) r.HandleFunc("/users/[0-9]+/?", errorHandler(authorizeHandler(userHandler))) r.HandleFunc("/users/[0-9]+/friends/[a-zA-Z]+/?", errorHandler(authorizeHandler(friendHandler)))
After:
r := new(route.Router) r.commonHandlers = [errorHandler, authorizeHandler] r.HandleFunc("/users/?", usersHandler) r.HandleFunc("/users/[0-9]+/?", userHandler) r.HandleFunc("/users/[0-9]+/friends/[a-zA-Z]+/?", friendHandler)
The text was updated successfully, but these errors were encountered:
I like this 👍
Sorry, something went wrong.
I am thinking if this work should be in this package or in a taironas/filers or taironas/authorize package.
taironas/filers
taironas/authorize
What do you think?
No branches or pull requests
Now:
After:
The text was updated successfully, but these errors were encountered: