mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
* Updated API Docs for api-v3 * Updated API Docs for top-level * Updates relating to @crookedneighbor comments * Updated type and field of 'to' param.
22 lines
369 B
JavaScript
22 lines
369 B
JavaScript
let api = {};
|
|
|
|
/**
|
|
* @api {get} /api/v3/status Get Habitica's API status
|
|
* @apiVersion 3.0.0
|
|
* @apiName GetStatus
|
|
* @apiGroup Status
|
|
*
|
|
* @apiSuccess {String} data.status 'up' if everything is ok
|
|
*/
|
|
api.getStatus = {
|
|
method: 'GET',
|
|
url: '/status',
|
|
async handler (req, res) {
|
|
res.respond(200, {
|
|
status: 'up',
|
|
});
|
|
},
|
|
};
|
|
|
|
module.exports = api;
|