MIT licensed and maintained by Oleg Grenrus
This version can be pinned in stack with:waitra-0.0.2.0@sha256:d327f003835071c55c5cd547f0cc5cfcb53f07d71fd164a8dfcf3cc0584c5063,1958

Module documentation for 0.0.2.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] fallbackApp

Documentation

Documentation is available at hackage.