Files
pics/models/pages/globalsettings.js
Thomas Lynch 77fb1a9530 Fix duplicate key in projectedsettings for board settings, and make custompages jsons get removed on deleting custom page.
Close #479 add endpoints for board and global settings.json to api with options that would be useful for a 3rd party app. Add the associated tasks, calls to them in settings.
Small change and add comments in lib/build/render.
2022-08-12 21:40:58 +10:00

17 lines
267 B
JavaScript

'use strict';
const { buildGlobalSettings } = require(__dirname+'/../../lib/build/tasks.js');
module.exports = async (req, res, next) => {
let json;
try {
json = await buildGlobalSettings();
} catch (err) {
return next(err);
}
return res.json(json);
};