Description
An EDSL for web application routes.
Description
Please see the README on Github at https://github.com/parsonsmatt/rowdy#readme
README.md
rowdy-yesod
An implementation of the rowdy
web route DSL for the Yesod web framework. Check the GitHub repo for more information and examples.
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"