Hello.
first of all, I think docs are outdated, cause APIErrorMiddleware requires an environment variable.
I tried to add the middleware:
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?
Thanks in advance,
Dan.
Hello.
first of all, I think docs are outdated, cause
APIErrorMiddlewarerequires anenvironmentvariable.I tried to add the middleware:
but it fails with error
Type of expression is ambiguous without more contextHow can I fix this?
Thanks in advance,
Dan.