repo_description: Node.js based forum software built for the modern web
repo_topics: community forum javascript mongodb node nodebb nodejs postgresql redis socket-io websockets
code: 'use strict';
  
  const nconf = require('nconf');
  const db = require('../database');
  
  module.exports.ping = async function (req, res, next) {
  	try {
  		await db.getSortedSetRange('plugins:active', 0, 0);
  		res.status(200).send(req.path === `${nconf.get('relative_path')}/sping` ? 'healthy' : '200');
  	} catch (err) {
  		next(err);
  	}
  };
  