waitra
Version 0.0.4.0 revision 2 uploaded by phadej.
Package meta
- Synopsis
- A very simple Wai router
- Description
Waitra is a very simple router. It's useful for writing simple API web-services, when you don't want to use the whole Yesod stack.
echoRoute :: Route echoRoute = routeGet (echoApp <$ string "/api/echo/" <*> many anySym) where echoApp msg _req respond = respond $ responseLBS status200 [] (fromString msg) app :: Application app = waitraMiddleware [echoRoute] $ staticApp $ embeddedSettings $(mkRecursiveEmbedded "static")
- Author
- Oleg Grenrus <oleg.grenrus@iki.fi>
- Bug reports
- n/a
- Category
- Web
- Copyright
- (c) 2015 Futurice
- Homepage
- https://github.com/futurice/waitra
- Maintainer
- Oleg Grenrus <oleg.grenrus@iki.fi>
- Package URL
- n/a
- Stability
- n/a