var config = {}
config.database = {};
config.server= {};
config.database.user = '';
config.database.password = '';
config.database.server = '';
config.database.database =
config.database.options = {
};
config.server.port = ;
module.exports = config;
var appConfig = require('./server/config/config');
...
app.set('port', appConfig.server.port || 8080);
...
getOne: function(req, res) {
var message= req.params.message;
res.status(200);
res.json(message);
}
})
},