-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Typed Error Catchers, Fairings #749
Copy link
Copy link
Open
Labels
enhancementA minor feature requestA minor feature requestrequestRequest for new functionalityRequest for new functionality
Milestone
Metadata
Metadata
Assignees
Labels
enhancementA minor feature requestA minor feature requestrequestRequest for new functionalityRequest for new functionality
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
In review
What I want is to inspect every request and if it is anything but POST to /api/auth/register or /api/auth/login then check for for auth header. If header is not present, then reply 401. I looked at Fairing - but Fairing cant respond to requests. I looked at request guard, it looks like for them I need to add a param to every route handler.
Questions
Any questions must include:
The version of Rocket this question is based on, if any.
master
What steps you've taken to answer the question yourself.
Looked at Fairing and request guard docs
What documentation you believe should include an answer to this question.
not sure