1
0
Fork 0
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:
kaso17 2017-08-11 18:27:45 +02:00
parent e9b604d3c4
commit 758ad91a55

View file

@ -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}",