Add missing route

This commit is contained in:
KZ 2015-07-19 21:22:23 +01:00
parent d79dd7e73e
commit 63f7a8912b
1 changed files with 7 additions and 1 deletions

View File

@ -33,11 +33,17 @@ namespace Jackett
); );
config.Routes.MapHttpRoute( config.Routes.MapHttpRoute(
name: "api", name: "apiDefault",
routeTemplate: "api/{indexerName}", routeTemplate: "api/{indexerName}",
defaults: new { controller = "API", action = "Call" } defaults: new { controller = "API", action = "Call" }
); );
config.Routes.MapHttpRoute(
name: "api",
routeTemplate: "api/{indexerName}/api",
defaults: new { controller = "API", action = "Call" }
);
config.Routes.MapHttpRoute( config.Routes.MapHttpRoute(
name: "download", name: "download",
routeTemplate: "api/{indexerName}/download/{path}/download.torrent", routeTemplate: "api/{indexerName}/download/{path}/download.torrent",