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

13 lines
463 B
JavaScript
Raw Normal View History

2021-05-29 10:06:26 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const main_1 = require("../../../main");
const path = '/saveSettings';
2021-06-05 11:58:50 +00:00
const handler = (req, res) => {
2021-05-29 10:06:26 +00:00
const { settings, spotifySettings } = req.query;
main_1.saveSettings(settings, spotifySettings);
main_1.listener.send('updateSettings', { settings, spotifySettings });
res.send({ result: true });
2021-06-05 11:58:50 +00:00
};
2021-05-29 10:06:26 +00:00
const apiHandler = { path, handler };
exports.default = apiHandler;