5 is
: 'more-routing-config',
10 * The routing driver to use.
12 * * `hash`: `MoreRouting.HashDriver`
13 * * `path`: `MoreRouting.PathDriver`
14 * * `mock`: `MoreRouting.MockDriver`
28 if (this.urlPrefix
) config
.prefix
= this.urlPrefix
;
31 // TODO(nevir): Support custom drivers, too.
32 if (this.driver
=== 'hash') {
33 driver
= new MoreRouting
.HashDriver(config
);
34 } else if (this.driver
=== 'path') {
35 driver
= new MoreRouting
.PathDriver(config
);
36 } else if (this.driver
=== 'mock') {
37 driver
= new MoreRouting
.MockDriver(config
);
39 throw new Error('Unknown driver type "' + this.driver
+ '"');
42 MoreRouting
.driver
= driver
;