Example #1
0
 private static void Main(string[] args)
 {
     Routing.Add("/Test", typeof(TestController), "Test");
     Routing.Add("/Foo/:foo", typeof(TestController), "Foo");
     EventLoop.Start(() => Server.Create()
                     .Use(RazorView.Default)
                     .Use(Routing.Handler)
                     .Use(Static.Directory("/public"))
                     .Listen("http://*:1337/"));
     Console.ReadKey();
 }