deemixer/server/dist/routes/api/post/logout.js
2021-06-05 13:58:50 +02:00

13 lines
408 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-expect-error
const deezer_js_1 = require("deezer-js");
const main_1 = require("../../../main");
const path = '/logout';
const handler = (req, res) => {
main_1.sessionDZ[req.session.id] = new deezer_js_1.Deezer();
res.send({ logged_out: true });
};
const apiHandler = { path, handler };
exports.default = apiHandler;