57 */
58
59▶app.init = function init() {
60 var router = null;
61
· · ·
70 configurable: true,
71 enumerable: true,
72▶ get: function getrouter() {
73 if (router === null) {
74 router = new Router({
· · ·
88 */
89
90▶app.defaultConfiguration = function defaultConfiguration() {
91 var env = process.env.NODE_ENV || 'development';
92
· · ·
96 this.set('env', env);
97 this.set('query parser', 'simple')
98▶ this.set('subdomain offset', 2);
99 this.set('trust proxy', false);
100
· · ·
107 debug('booting in %s mode', env);
108
109▶ this.on('mount', function onmount(parent) {
110 // inherit trust proxy
111 if (this.settings[trustProxyDefaultSymbol] === true
+ 37 more matches in this file