waitra: A very simple Wai router
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] fallbackApp
[Skip to Readme]
Downloads
- waitra-0.0.2.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.0.1.0, 0.0.2.0, 0.0.3.0, 0.0.4.0 |
|---|---|
| Dependencies | aeson (>=0.8.0.2), base (>=4.6 && <4.9), http-types (>=0.8.6), regex-applicative (>=0.3.1), text (>=1.1.0.0), wai (>=3.0.2.3) [details] |
| License | MIT |
| Copyright | (c) 2015 Futurice |
| Author | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Uploaded | by phadej at 2015-03-11T17:14:33Z |
| Category | Web |
| Home page | https://github.com/futurice/waitra |
| Source repo | head: git clone git://github.com/futurice/waitra.git |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 3461 total (12 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2015-03-11 [all 1 reports] |