From 567d867b1e81a55913f7744d67b924d29dfa009f Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 19 Mar 2014 02:07:14 -0400 Subject: [PATCH] fixed require to missing public config.json --- src/controllers/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/api.js b/src/controllers/api.js index 6b781e1d4a..6f82f2a37e 100644 --- a/src/controllers/api.js +++ b/src/controllers/api.js @@ -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;