mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	fixed require to missing public config.json
This commit is contained in:
		| @@ -8,8 +8,10 @@ var pkg = require('./../../package.json'), | ||||
| var apiController = {}; | ||||
|  | ||||
| apiController.getConfig = function(req, res, next) { | ||||
| 	var config = require('./../../public/config.json'); | ||||
| 	var serverConfig = require('./../../config.json'); | ||||
|  | ||||
| 	var config = {}; | ||||
| 	config.relative_path = serverConfig.relative_path; | ||||
| 	config.version = pkg.version; | ||||
| 	config.postDelay = meta.config.postDelay; | ||||
| 	config.minimumTitleLength = meta.config.minimumTitleLength; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user