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
These could be preconditions that must be satisfied for a route to be executed properly. Failure would result in some error machinery being triggered.
Example:
GET /posts !allowed
Where "allowed" will be some middleware that simply preforms a check:
const allowed = (req: Request) => req.session.has('allowed') ? pure(true) : pure(false)
Failing the assertion should hook into an on.assertion event that by default sends a 409 or 403 response.
on.assertion
The text was updated successfully, but these errors were encountered:
No branches or pull requests
These could be preconditions that must be satisfied for a route to be executed properly. Failure would result in some error machinery being triggered.
Example:
Where "allowed" will be some middleware that simply preforms a check:
Failing the assertion should hook into an
on.assertion
event that by default sends a 409 or 403 response.The text was updated successfully, but these errors were encountered: