Name: waitra
Owner: Futurice
Description: A very simple Wai router
Created: 2015-03-11 12:03:48.0
Updated: 2016-08-11 17:29:24.0
Pushed: 2016-05-24 05:56:12.0
Homepage: null
Size: 20
Language: Haskell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
Route :: Route
Route = routeGet (echoApp <$ string "/api/echo/" <*> many anySym)
ere echoApp msg _req respond = respond $ responseLBS status200 [] (fromString msg)
:: Application
= waitraMiddleware [echoRoute] $ staticApp $ embeddedSettings $(mkRecursiveEmbedded "static")
Documentation is available at hackage.