About

Metadata

  • Last updated , by parsonsmatt
  • License BSD-3-Clause
  • Categories Web Development
  • Maintained by: parsonsmatt@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

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"