mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Initial check in of some code that shows a list of blogs, a blog details page and can create a blog.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041601
This commit is contained in:
34
src/Orchard.Web/Packages/Orchard.Blogs/Routes.cs
Normal file
34
src/Orchard.Web/Packages/Orchard.Blogs/Routes.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
using Orchard.Mvc.Routes;
|
||||
|
||||
namespace Orchard.Blogs {
|
||||
//public class Routes : IRouteProvider {
|
||||
// public void GetRoutes(ICollection<RouteDescriptor> routes) {
|
||||
// foreach (var routeDescriptor in GetRoutes())
|
||||
// routes.Add(routeDescriptor);
|
||||
// }
|
||||
|
||||
// public IEnumerable<RouteDescriptor> GetRoutes() {
|
||||
// return new[] {
|
||||
// new RouteDescriptor {
|
||||
// Route = new Route(
|
||||
// "{*slug}",
|
||||
// new RouteValueDictionary {
|
||||
// {"area", "Orchard.CmsPages"},
|
||||
// {"controller", "templates"},
|
||||
// {"action", "show"}
|
||||
// },
|
||||
// new RouteValueDictionary {
|
||||
// {"slug", ""}
|
||||
// },
|
||||
// new RouteValueDictionary {
|
||||
// {"area", "Orchard.CmsPages"}
|
||||
// },
|
||||
// new MvcRouteHandler())
|
||||
// }
|
||||
// };
|
||||
// }
|
||||
//}
|
||||
}
|
Reference in New Issue
Block a user