Skip to content
New issue

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

feat: add endpoint router wildcard #562

Conversation

esbenbjerre
Copy link
Contributor

Description

This PR adds a wildcard handler that translates to a catch-all route template. The purpose is to have a simple, readable way of expressing a default handler.

How to test

let endpoints =
  [
    GET [
      route "/a" a
      route "/b" b
    ]
    wildcard notFound
  ]

where a, b and notFound are appropriate HttpHandlers.

Related issues

#534
#537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant