Skip to content
Myr

Throwing error when routes are added at runtime

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Since it doubles as an http client, without this someone could arbitrarily create routes.. haha not good!

authored by visionmedia · committed by visionmedia · parent c6a2674 · Browse files · 2 files+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−1 removed

  • other:+4 added−1 removed

2 files+4 added−1 removed

modified:lib/express/core.js+1 added
199 unmodified lines
200 */201 202 run: function(port, host, backlog){203 var self = this204 this.running = true205 if (host !== undefined) this.host = host206 if (port !== undefined) this.port = port207 if (backlog !== undefined) this.backlog = backlog208 require('http')
115 unmodified lines
modified:lib/express/dsl.js+3 added-1 removed