Fixed misspelling
mde
11 years ago
190 | 190 |
|
191 | 191 |
//Can also match specific HTTP methods only
|
192 | 192 |
router.match('/xandadu', 'get').to(
|
193 | |
{controller: 'Xandadu', action: 'specialHandler'});
|
|
193 |
{controller: 'Xanadu', action: 'specialHandler'});
|
194 | 194 |
```
|
195 | 195 |
|
196 | 196 |
***Resource routes***
|
26 | 26 |
// {controller: 'Farewells', action: 'kings'});
|
27 | 27 |
// Can also match specific HTTP methods only
|
28 | 28 |
// router.match('/xandadu', 'get').to(
|
29 | |
// {controller: 'Xandadu', action: 'specialHandler'});
|
|
29 |
// {controller: 'Xanadu', action: 'specialHandler'});
|
30 | 30 |
//
|
31 | 31 |
// Resource-based routes
|
32 | 32 |
// router.resource('hemispheres');
|
26 | 26 |
// {controller: 'Farewells', action: 'kings'});
|
27 | 27 |
// Can also match specific HTTP methods only
|
28 | 28 |
// router.match('/xandadu', 'get').to(
|
29 | |
// {controller: 'Xandadu', action: 'specialHandler'});
|
|
29 |
// {controller: 'Xanadu', action: 'specialHandler'});
|
30 | 30 |
//
|
31 | 31 |
// Resource-based routes
|
32 | 32 |
// router.resource('hemispheres');
|
26 | 26 |
// {controller: 'Farewells', action: 'kings'});
|
27 | 27 |
// Can also match specific HTTP methods only
|
28 | 28 |
// router.match('/xandadu', 'get').to(
|
29 | |
// {controller: 'Xandadu', action: 'specialHandler'});
|
|
29 |
// {controller: 'Xanadu', action: 'specialHandler'});
|
30 | 30 |
//
|
31 | 31 |
// Resource-based routes
|
32 | 32 |
// router.resource('hemispheres');
|