예제 #1
0
파일: Program.cs 프로젝트: benlesh/ALE
 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();
 }