azukiapp/azk

View on GitHub
src/agent/api/routes.js

Summary

Maintainability
A
0 mins
Test Coverage
import { _, config } from 'azk';

module.change_code = 1;
module.exports = function(app) {
  // Return configs from set by Configure
  app.get('/configs', (req, res) => {
    var keys = config('agent:config_keys');
    res.json(_.reduce(keys, (acc, key) => {
      acc[key] = config(key);
      return acc;
    }, {}));
  });
};