About

Metadata

  • Last updated , by phadej
  • License MIT
  • Categories Web Development
  • Maintained by: Oleg Grenrus <oleg.grenrus@iki.fi>

  • Lottery factor: 0

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    examples (off by default)

    Build example executables

Readme

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.