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;