Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Created September 22, 2013 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyond-code-github/6661729 to your computer and use it in GitHub Desktop.
Save beyond-code-github/6661729 to your computer and use it in GitHub Desktop.
Extended hello world module which will return some 'interesting' json
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