aesiniath / unbeliever

Opinionated Haskell Interoperability
https://hackage.haskell.org/package/unbeliever
MIT License
33 stars 11 forks source link

Routing mechanism for webservers #154

Closed istathar closed 1 year ago

istathar commented 1 year ago

Introduce new module Core.Webserver.Router containing a simple mechanism for routing HTTP requests to handler functions.

Using this allows a developer to avoid needing to rely on more complex packages like servant if their routing needs are straight-forward.

istathar commented 1 year ago

Here's the API shape now:

image

you pass that to prepareRoutes and you're on your way.