MIT licensed and maintained by Oleg Grenrus
This version can be pinned in stack with:waitra-0.0.4.0@sha256:3c05c70131b65f6b7f66bc76f29b760a208c4c32809db445bd20a1f3eb60ce8a,2799

Module documentation for 0.0.4.0

Waitra

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.

Build Status

Synopsis

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")

Documentation

Documentation is available at hackage.