Update Routes.cs

This commit is contained in:
jtkech
2015-08-13 23:27:40 +02:00
parent 641236f358
commit 07efdb267a

View File

@@ -13,6 +13,20 @@ namespace Orchard.Search {
public IEnumerable<RouteDescriptor> GetRoutes() {
return new[] {
new RouteDescriptor {
Priority = 5,
Route = new Route("Search/ContentPicker",
new RouteValueDictionary {
{"area", "Orchard.Search"},
{"controller", "ContentPicker"},
{"action", "Index"}
},
null,
new RouteValueDictionary {
{"area", "Orchard.Search"}
},
new MvcRouteHandler())
},
new RouteDescriptor {
Priority = 5,
Route = new Route("Search/{searchIndex}",
@@ -31,4 +45,4 @@ namespace Orchard.Search {
};
}
}
}
}