Created
May 6, 2009 09:49
-
-
Save cgrand/107457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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