Created
January 27, 2016 04:02
-
-
Save dcomartin/c091da78a0127b4bc9f0 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 NancyDemoModule : NancyModule | |
{ | |
public NancyDemoModule(IResourceLinker linker) | |
{ | |
Get["HelloWorldRoute", "/nancy/demo/{MyQueryParameter:string}"] = | |
parameters => new[] {"Hello", "World", (string) parameters.MyQueryParameter}; | |
Get["FindHelloWorld", "/nancy/findhelloworld"] = parameters => new[] | |
{ | |
linker.BuildAbsoluteUri(Context, "HelloWorldRoute", new {MyQueryParameter = "CodeOpinion"}) | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment