Skip to content

error initializing #5

Description

@danipralea

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions