Доработки контроллера

This commit is contained in:
Book Pauk
2018-12-27 15:16:10 +07:00
parent 2722f3a3fb
commit afbdb17e6d
2 changed files with 8 additions and 5 deletions

View File

@@ -5,9 +5,7 @@ function initRoutes(app, connPool, config) {
const misc = new c.MiscController(connPool, config);
const routes = [
['POST', '/api/config/:name', misc, 'configValue', {}],
['GET', '/api/config/:name', misc, 'configValue', {}],
['POST', '/api/config', misc, 'getConfig', {}],
];
for (route of routes) {