mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-26 12:01:53 +03:00
17 lines
392 B
JavaScript
17 lines
392 B
JavaScript
const asyncWrapper = require('../../middleware/asyncWrapper');
|
|
const loadConfig = require('../../utils/loadConfig');
|
|
|
|
// @desc Get config
|
|
// @route GET /api/config
|
|
// @access Public
|
|
const getConfig = asyncWrapper(async (req, res, next) => {
|
|
const config = await loadConfig();
|
|
|
|
res.status(200).json({
|
|
success: true,
|
|
data: config,
|
|
});
|
|
});
|
|
|
|
module.exports = getConfig;
|