Exemplo n.º 1
0
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.Get(string.Empty, "Authentication.Show");
            routes.Get("login", "Authentication.Login");
            routes.Get("logout", "Authentication.Logout");

            routes.Get("entries/tagcloud", "Entries.TagCloud");
            routes.Get("entries/{day}", "Entries.Edit");
            routes.Get("entries", "Entries.Index");
            routes.Post("entries/{day}", "Entries.Update");
        }