cleaned up routes
This commit is contained in:
parent
0b8af8b8a1
commit
babf23af24
@ -37,14 +37,11 @@ namespace VideoGameQuotes.Web {
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
routes.IgnoreRoute("media/{*anything}");
|
||||
|
||||
routes.MapRoute("about", "about", new { controller = "Home", action = "About" });
|
||||
routes.MapRoute("contact", "contact", new { controller = "Home", action = "Contact" });
|
||||
routes.MapRoute("submit", "submit", new { controller = "Quote", action = "Submit" });
|
||||
routes.MapRoute("search", "search", new { controller = "Quote", action = "Search" });
|
||||
routes.MapRoute("recent", "recent", new { controller = "Quote", action = "Recent" });
|
||||
routes.MapRoute("random", "random", new { controller = "Quote", action = "Random" });
|
||||
routes.MapRoute("create-category", "category/create", new { controller = "Quote", action = "CreateCategory" });
|
||||
routes.MapRoute("home", "{action}", new { controller = "Home", action = "Index" }, new { action = "about|contact" });
|
||||
routes.MapRoute("quote", "{action}", new { controller = "Quote" }, new { action = "submit|search|recent|random|best" });
|
||||
routes.MapRoute("individual-quote", "quote/{id}/{*text}", new { controller = "Quote", action = "Quote" }, new { id = @"\d+" });
|
||||
routes.MapRoute("create-category", "category/create", new { controller = "Quote", action = "CreateCategory" });
|
||||
|
||||
routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional });
|
||||
}
|
||||
}
|
||||
|
@ -22,11 +22,11 @@
|
||||
|
||||
<div id="main-menu">
|
||||
<ul class="clearfix menu">
|
||||
<li><%= Html.ActionLink("Recent", "Recent", "Quote") %></li>
|
||||
<li><%= Html.ActionLink("Random", "Random", "Quote") %></li>
|
||||
<li><%= Html.ActionLink("Best", "Best", "Quote") %></li>
|
||||
<li><%= Html.ActionLink("Submit", "Submit", "Quote") %></li>
|
||||
<li><%= Html.ActionLink("About", "About", "Home") %></li>
|
||||
<li><%= Html.ActionLink("Recent", "recent", "Quote") %></li>
|
||||
<li><%= Html.ActionLink("Random", "random", "Quote") %></li>
|
||||
<li><%= Html.ActionLink("Best", "best", "Quote") %></li>
|
||||
<li><%= Html.ActionLink("Submit", "submit", "Quote") %></li>
|
||||
<li><%= Html.ActionLink("About", "about", "Home") %></li>
|
||||
<li class="searchbox">
|
||||
<% using (Html.BeginForm("search", "quote", FormMethod.Get)) { %>
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user