Created
September 22, 2013 16:45
-
-
Save beyond-code-github/6661729 to your computer and use it in GitHub Desktop.
Extended hello world module which will return some 'interesting' json
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 OwinModulesHelloWorld | |
{ | |
using Superscribe.Owin; | |
public class HelloWorldModule : SuperscribeOwinModule | |
{ | |
public HelloWorldModule() | |
{ | |
this.Get["/"] = _ => "Hello world - OWIN style"; | |
this.Get["Messages"] = _ => | |
new[] | |
{ | |
new { From = "Bill", Content = "Fancy a pint later?" }, | |
new { From = "Kathryn", Content = "You've been coding instead of doing the washing up again haven't you" } | |
}; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment