deemixer/server/dist/routes/api/post/logout.js

13 lines
408 B
JavaScript
Raw Normal View History

2021-05-23 20:42:02 +00:00
"use strict";
2021-05-29 10:06:26 +00: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 11:58:50 +00:00
const handler = (req, res) => {
2021-05-29 10:06:26 +00:00
main_1.sessionDZ[req.session.id] = new deezer_js_1.Deezer();
res.send({ logged_out: true });
2021-06-05 11:58:50 +00:00
};
2021-05-29 10:06:26 +00:00
const apiHandler = { path, handler };
exports.default = apiHandler;