Added cron check

This commit is contained in:
Keith Holliday
2017-06-08 17:10:05 -07:00
parent 7422d020b1
commit 36fa3ab06f
4 changed files with 34 additions and 21 deletions

View File

@@ -12,9 +12,11 @@ let api = {};
*/
api.cron = {
method: 'POST',
url: '/debug/cron',
url: '/cron',
middlewares: [authWithHeaders(), cron],
async handler (req, res) {
res.respond(200, {});
},
};
module.exports = api;