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 = '/removeFromQueue';
|
2021-06-05 11:58:50 +00:00
|
|
|
const handler = (req, res) => {
|
2021-05-29 10:06:26 +00:00
|
|
|
const { uuid } = req.query;
|
|
|
|
if (uuid) {
|
|
|
|
main_1.cancelDownload(uuid);
|
|
|
|
res.send({ result: true });
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
res.send({ result: false });
|
|
|
|
}
|
2021-06-05 11:58:50 +00:00
|
|
|
};
|
2021-05-29 10:06:26 +00:00
|
|
|
const apiHandler = { path, handler };
|
|
|
|
exports.default = apiHandler;
|