Browse Source

Adjust download path parameter name for torrent REST API

dev
David Ludwig 4 years ago
parent
commit
21ae611d90
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      services/torrent-rest/src/services/WebServer/routes/api.ts

+ 1
- 1
services/torrent-rest/src/services/WebServer/routes/api.ts View File

@ -45,7 +45,7 @@ export default function register(factory: RouteRegisterFactory<MiddlewareMethod<
* Add a torrent to the client
*/
factory.post("/add", async (request, reply) => {
let downloadPath = (<any>request.query)["downloadPath"] ?? undefined;
let downloadPath = (<any>request.query)["download_path"] ?? undefined;
let result: string[] = [];
if (request.isMultipart()) {
let files = request.files();


Loading…
Cancel
Save