2021-05-23 20:42:02 +00:00
|
|
|
"use strict";
|
2021-05-29 10:06:26 +00:00
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const main_1 = require("../../../main");
|
|
|
|
const path = '/removeFinishedDownloads';
|
2021-06-05 11:58:50 +00:00
|
|
|
const handler = (_, res) => {
|
2021-05-29 10:06:26 +00:00
|
|
|
main_1.clearCompletedDownloads();
|
|
|
|
res.send({ result: true });
|
2021-06-05 11:58:50 +00:00
|
|
|
};
|
2021-05-29 10:06:26 +00:00
|
|
|
const apiHandler = { path, handler };
|
|
|
|
exports.default = apiHandler;
|