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
Hello. first of all, I think docs are outdated, cause APIErrorMiddleware requires an environment variable. I tried to add the middleware:
APIErrorMiddleware
environment
let auth = router.grouped("auth").group(APIErrorMiddleware(environment: Environment.development))
but it fails with error Type of expression is ambiguous without more context How can I fix this?
Type of expression is ambiguous without more context
Thanks in advance, Dan.
The text was updated successfully, but these errors were encountered:
I'm having the same issue.
Sorry, something went wrong.
I got mine working by registering the service first in my app's configure function:
services.register(APIErrorMiddleware.self)
No branches or pull requests
Hello.
first of all, I think docs are outdated, cause
APIErrorMiddleware
requires anenvironment
variable.I tried to add the middleware:
but it fails with error
Type of expression is ambiguous without more context
How can I fix this?
Thanks in advance,
Dan.
The text was updated successfully, but these errors were encountered: