Skip to content

Typed Error Catchers, Fairings #749

Open
@mmrath

Description

@mmrath

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:

  1. The version of Rocket this question is based on, if any.
    master

  2. What steps you've taken to answer the question yourself.
    Looked at Fairing and request guard docs

  3. What documentation you believe should include an answer to this question.
    not sure

Metadata

Metadata

Assignees

Labels

enhancementA minor feature requestrequestRequest for new functionality

Type

No type

Projects

Status

In review

Relationships

None yet

Development

No branches or pull requests

Issue actions