Commit db72a8066f0f3be2e5ae339371d27f6a03bbd02b
1 parent
98eaaab962
Exists in
master
APISERVER: /config/is-dirty
Showing 1 changed file with 10 additions and 0 deletions Side-by-side Diff
api-server/router-config.js
... | ... | @@ -89,6 +89,14 @@ function saveConfig(req, res, next) { |
89 | 89 | }) |
90 | 90 | } |
91 | 91 | |
92 | +function isDirty(req, res, next) { | |
93 | + res.json({ | |
94 | + method: '/config/is-dirty', | |
95 | + error: null, | |
96 | + dirty: matrix.config_is_dirty || false | |
97 | + }) | |
98 | +} | |
99 | + | |
92 | 100 | router.get('/', getJsonConfig); |
93 | 101 | router.post('/', getJsonConfig); |
94 | 102 | |
... | ... | @@ -99,3 +107,5 @@ router.post('/set/:key', bodyParser.json(), setConfigElement); |
99 | 107 | |
100 | 108 | router.get('/del/:key', delConfigElement); |
101 | 109 | router.get('/save', saveConfig); |
110 | + | |
111 | +router.get('/is-dirty', isDirty); |