deemix-gui/server/dist/routes/api/post/logout.js

13 lines
408 B
JavaScript
Raw Normal View History

2021-05-23 22:42:02 +02:00
"use strict";
2021-05-29 12:06:26 +02:00
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-expect-error
const deezer_js_1 = require("deezer-js");
const main_1 = require("../../../main");
const path = '/logout';
2021-06-05 13:58:50 +02:00
const handler = (req, res) => {
2021-05-29 12:06:26 +02:00
main_1.sessionDZ[req.session.id] = new deezer_js_1.Deezer();
res.send({ logged_out: true });
2021-06-05 13:58:50 +02:00
};
2021-05-29 12:06:26 +02:00
const apiHandler = { path, handler };
exports.default = apiHandler;