示例#1
0
 public static void Load(IRoute router)
 {
     router.AddAsyncRoute("contacts", ContactsController.GetUserContacts);
     router.AddAsyncRoute("add_contact", ContactsController.Create);
     router.AddAsyncRoute("delete_contact", ContactsController.Delete);
     router.AddAsyncRoute("chat", ChatRoomController.OpenChat);
     router.AddAsyncRoute("update_chat", ChatRoomController.Update);
     router.AddAsyncRoute("send_message", MessageController.Create);
     router.AddAsyncRoute("top_authors", PagesController.MostActiveAuthors);
 }