deemixer/server/dist/routes/api/get/getQueue.js
2021-05-23 22:42:02 +02:00

17 lines
486 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const main_1 = require("../../../main");
const path = '/getQueue';
// let homeCache: any
const handler = (_, res) => {
const result = {
queue: main_1.queue,
order: main_1.queueOrder
};
if (main_1.currentJob)
result.currentItem = main_1.currentJob.downloadObject.getSlimmedDict();
res.send(result);
};
const apiHandler = { path, handler };
exports.default = apiHandler;