Ketchup-0.4.1: A super small web framework for those who don't like big and fancy codebases

Safe HaskellNone
LanguageHaskell98

Ketchup.Routing

Synopsis

Documentation

match :: ByteString -> Matcher Source

Create a matchable template with parameters (:param)

prefix :: ByteString -> Matcher Source

Create a prefix matcher

route Source

Arguments

:: [(Matcher, Route)]

Routes

-> Handler 

Router function Takes a list of routes and iterates through them for every requeust

useHandler :: Handler -> Route Source

Wrap a handler in a route Lets you use a handler (no parameters) as a route