Created
February 3, 2010 05:11
-
-
Save tim-smart/293347 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Automatic parse querystrings. If "^/home" is specified, | |
// it will also check for "^/home?somedata=test" | |
Get(["^/(home)(.*)", "^/(news)(.*)"], function(details, regexMatch) { | |
details.params["help"]; | |
... | |
} | |
Post(..., function(details, regexMatch) { | |
details.params["username"]; | |
... | |
}); | |
Stream(["^/stream/?(.*)"], function(...) { ... }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment