mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Update Routes.cs
This commit is contained in:
@@ -13,6 +13,20 @@ namespace Orchard.Search {
|
|||||||
|
|
||||||
public IEnumerable<RouteDescriptor> GetRoutes() {
|
public IEnumerable<RouteDescriptor> GetRoutes() {
|
||||||
return new[] {
|
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 {
|
new RouteDescriptor {
|
||||||
Priority = 5,
|
Priority = 5,
|
||||||
Route = new Route("Search/{searchIndex}",
|
Route = new Route("Search/{searchIndex}",
|
||||||
@@ -31,4 +45,4 @@ namespace Orchard.Search {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user