|
|
@ -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(); |
|
|
|