|
@@ -27,7 +27,8 @@ exports = module.exports = {
|
|
|
settingsSave: settingsSave,
|
|
settingsSave: settingsSave,
|
|
|
settingsGet: settingsGet,
|
|
settingsGet: settingsGet,
|
|
|
exportThings: exportThings,
|
|
exportThings: exportThings,
|
|
|
- importThings: importThings
|
|
|
|
|
|
|
+ importThings: importThings,
|
|
|
|
|
+ healthcheck: healthcheck
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
function init(callback) {
|
|
function init(callback) {
|
|
@@ -39,6 +40,10 @@ function init(callback) {
|
|
|
], callback);
|
|
], callback);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function healthcheck(req, res, next) {
|
|
|
|
|
+ next(new HttpSuccess(200, {}));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
function auth(req, res, next) {
|
|
function auth(req, res, next) {
|
|
|
if (!req.query.token) return res.status(401).send('missing token');
|
|
if (!req.query.token) return res.status(401).send('missing token');
|
|
|
|
|
|