1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/lib/routes/admin-api/config.js
2020-02-20 08:34:22 +01:00

20 lines
380 B
JavaScript

'use strict';
const Controller = require('../controller');
class ConfigController extends Controller {
constructor(config) {
super(config);
this.uiConfig = config.ui;
this.get('/', this.getUIConfig);
}
async getUIConfig(req, res) {
const config = this.uiConfig;
res.json(config);
}
}
module.exports = ConfigController;