mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
20 lines
380 B
JavaScript
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;
|