Example #1
0
 public void Configuration(IAppBuilder builder)
 {
     var nancyOwinHost = new NancyOwinHost();
     builder
         .UseRewindableBody()
         .UseShowExceptions()
         .UseContentType()
         .Map("/wilson", map => map.Run(Wilson.App))
         .Map("/wilsonasync", map => map.Run(Wilson.App, true))
         .Cascade(DefaultPage.App(), Delegates.ToDelegate(nancyOwinHost.ProcessRequest));
 }