mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
23 lines
421 B
JavaScript
23 lines
421 B
JavaScript
import { authWithHeaders } from '../../middlewares/auth';
|
|
import cron from '../../middlewares/cron';
|
|
|
|
let api = {};
|
|
|
|
/**
|
|
* @api {post} /api/v3/cron Runs cron
|
|
* @apiName Cron
|
|
* @apiGroup Cron
|
|
*
|
|
* @apiSuccess {Object} data An empty Object
|
|
*/
|
|
api.cron = {
|
|
method: 'POST',
|
|
url: '/cron',
|
|
middlewares: [authWithHeaders(), cron],
|
|
async handler (req, res) {
|
|
res.respond(200, {});
|
|
},
|
|
};
|
|
|
|
module.exports = api;
|