futurice/waitra

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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

Documentation is available at hackage.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.