Created
December 17, 2014 18:47
-
-
Save Crisfole/8be9f5658ca97924a9be to your computer and use it in GitHub Desktop.
Demo Module
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
using Nancy; | |
namespace MyNamespace | |
{ | |
public class MyModule : NancyModule { | |
public MyModule() { | |
Get["/"] = GetRoot; | |
} | |
private dynamic GetRoot(dynamic _) { | |
return View["index"]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment