Created
October 7, 2016 02:50
-
-
Save dcomartin/46d54a106308a1a34451cc996a3849a5 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
public class HomeModule : NancyModule | |
{ | |
public HomeModule() | |
{ | |
Get["/{category}"] = parameters => "My category is " + parameters.category; | |
Get["/sayhello"] = _ => "Hello from Nancy"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment