e-ucm/rage-analytics-games

View on GitHub
routes/health.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

var express = require('express'),
    router = express.Router();

/**
 * @api {get} /health Check the api health.
 * @apiName Heath
 * @apiGroup Health
 *
 * @apiPermission none
 *
 * @apiSuccess(200) Success.
 *
 * @apiSuccessExample Success-Response:
 *      HTTP/1.1 200 OK
 *      {
 *          "status": "Available"
 *      }
 */
router.get('/', function (req, res, next) {
    res.json({
        status: 'Available'
    });
});

module.exports = router;