@hackage rowdy0.0.1.0

An EDSL for web application routes.

rowdy

The core routing DSL for rowdy. Check the GitHub repo for more information and examples.

-- Yesod-style:
routes = do
    get "RootR"
    "users" // do
        resource "UserIndexR" [get, post]
        capture @Int // resource "UserR" [get, put]
    "admin" // "Admin" /: do
        get "PanelR" ! "admin" ! "cool"
        post "PanelR" ! "admin"
    "other-attr" // "safe" /! do
        get "SafeR"
        put "SafeR"