Open
Description
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
Metadata
Metadata
Assignees
Type
Projects
Status
In review