Files
habitica/website/server/controllers/api-v3/status.js
T
Blade Barringer 81a30d1f20 Docs changes (#7401)
* chore: Clarify transfer-gems documentation

* chore: Clarify api status route documentation

* chore: Mark webhooks as BETA
2016-05-22 03:55:03 +02:00

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 {status} 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;