Ketchup-0.4.0: 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

prefix :: ByteString -> Matcher Source

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