mirror of
https://github.com/Jackett/Jackett
synced 2025-01-02 13:16:16 +00:00
add /api legacy routes
This commit is contained in:
parent
e9b604d3c4
commit
758ad91a55
1 changed files with 20 additions and 0 deletions
|
@ -191,6 +191,16 @@ namespace Jackett
|
|||
}
|
||||
);
|
||||
|
||||
config.Routes.MapHttpRoute(
|
||||
name: "LegacyTorznab",
|
||||
routeTemplate: "torznab/{indexerId}/api",
|
||||
defaults: new
|
||||
{
|
||||
controller = "Results",
|
||||
action = "Torznab"
|
||||
}
|
||||
);
|
||||
|
||||
// Legacy fallback for Potato results
|
||||
config.Routes.MapHttpRoute(
|
||||
name: "LegacyPotato",
|
||||
|
@ -202,6 +212,16 @@ namespace Jackett
|
|||
}
|
||||
);
|
||||
|
||||
config.Routes.MapHttpRoute(
|
||||
name: "LegacyPotato",
|
||||
routeTemplate: "potato/{indexerId}/api",
|
||||
defaults: new
|
||||
{
|
||||
controller = "Results",
|
||||
action = "Potato"
|
||||
}
|
||||
);
|
||||
|
||||
config.Routes.MapHttpRoute(
|
||||
name: "WebUI",
|
||||
routeTemplate: "UI/{action}",
|
||||
|
|
Loading…
Reference in a new issue