Skip to content

Instantly share code, notes, and snippets.

@cgrand
Created May 6, 2009 09:49
Show Gist options
  • Save cgrand/107457 to your computer and use it in GitHub Desktop.
Save cgrand/107457 to your computer and use it in GitHub Desktop.
(app
(with-some-middleware1 arg arg arg)
(with-some-middleware2 arg arg arg)
["account" name] {:get (more code too)
:post (more code too)}
["files" & path] (really more code)
["app" &] (app ; je peux imbriquer les apps pour une meilleure réutilisation et pour pas coder les segmenst communs des url partout
["order" order-id] (display-order order-id)
["bill" order-id] (display-bill order-id))
["other-app" &] (proxy "http://server2/my-app")) ; une url /other-app/foo sera automatiquement proxiée à http://server2/my-app/foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment