Commit 0bd477ce853d70807336788c82f1a27cfd441d62

Authored by Adhidarma Hadiwinoto
1 parent bc674cdc41
Exists in master

APISERVER: get blank key

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

api-server/router-config.js
... ... @@ -20,9 +20,11 @@ function getConfigElement(req, res, next) {
20 20 return;
21 21 }
22 22  
23   - res.json(jsonQuery(rq.params.key, {config: config}));
  23 + res.json(jsonQuery(req.params.key, {config: config}));
24 24 }
25 25  
26 26 router.get('/', getJsonConfig);
27 27 router.post('/', getJsonConfig);
  28 +
  29 +router.use('/get', getConfigElement);
28 30 router.use('/get/:key', getConfigElement);