Skip to content
Myr

Added public `app.routes`. Closes #887

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

keep things simple for now :)

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 0fca62c · Browse files · 2 files+49 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+49 added−1 removed

  • tests:+48 added−0 removed
  • other:+1 added−1 removed

2 files+49 added−1 removed

modified:lib/application.js+1 added-1 removed
91 unmodified lines
92 });9394 // router95 this._router = new Router(this);96 this.routes = this._router.routes;96 this.routes = this._router.map;97 this.__defineGetter__('router', function(){98 this._usedRouter = true;99 this._router.caseSensitive = this.enabled('case sensitive routing');100 this._router.strict = this.enabled('strict routing');
455 unmodified lines
added:test/app.routes.js+48 added