mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			309 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			309 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | 'use strict'; | ||
|  | 
 | ||
|  | var async = require('async'); | ||
|  | var 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 === '/sping' ? 'healthy' : '200'); | ||
|  | 		}, | ||
|  | 	], next); | ||
|  | }; |