mirror of
https://github.com/luxfi/pics.git
synced 2026-10-30 15:22:15 +00:00
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.
17 lines
267 B
JavaScript
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);
|
|
|
|
};
|