Created
July 13, 2011 04:24
-
-
Save davidalpert/1079716 to your computer and use it in GitHub Desktop.
a sample NancyModule demonstrating a base modulePath
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
| public class MainModule : NancyModule | |
| { | |
| public MainModule() : base("/blog") | |
| { | |
| Get["/posts"] = parameters => {...}; | |
| Get["/tags"] = parameters => {...}; | |
| Get["/categories"] = parameters => {...}; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment