Created
September 20, 2013 12:25
-
-
Save beyond-code-github/6636693 to your computer and use it in GitHub Desktop.
HelloWorldModule with parameter capture
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
namespace WebApiModuleHelloWorld | |
{ | |
using Superscribe.Models; | |
public class HelloWorldModule : Superscribe.WebApi.Modules.SuperscribeModule | |
{ | |
public HelloWorldModule() | |
{ | |
this.Get["/"] = _ => "Hello World!"; | |
this.Get["Hello" / (ʃString)"Name"] = _ => string.Format("Hello {0}", _.Parameters.Name); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment