mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
* fix: WIP home fix * remove console.log * fix: #6949 on redis run all tests in subfolder /forum fix URI errors fix sping/ping
17 lines
374 B
JavaScript
17 lines
374 B
JavaScript
'use strict';
|
|
|
|
const async = require('async');
|
|
const nconf = require('nconf');
|
|
const db = require('../database');
|
|
|
|
module.exports.ping = function (req, res, next) {
|
|
async.waterfall([
|
|
function (next) {
|
|
db.getObject('config', next);
|
|
},
|
|
function () {
|
|
res.status(200).send(req.path === nconf.get('relative_path') + '/sping' ? 'healthy' : '200');
|
|
},
|
|
], next);
|
|
};
|