How this can be "translated" to Orchard
routes.MapRoute(
name: "Durandal App Views",
url: "App/views/{viewName}.cshtml",
defaults: new { controller = "DurandalView", action = "Get" }
);
I tried to make theme based on this.
It is not working and breaks all Orchard site
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 {
Priority = 5,
Route = new Route(
"/App/views/{viewName}.cshmtl",
new RouteValueDictionary {
{"area", "Durandal"},
{"controller", "DurandalView"},
{"action", "Get"}
},
new RouteValueDictionary(),
new RouteValueDictionary {
{"area", "Durandal"}
},
new MvcRouteHandler())
}
};
}
}`