|
Revision 899
(checked in by goldoraf, 2 years ago)
|
Finished notifier demo app
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
$map = new SRouteSet(); |
|---|
| 4 |
$map->connect('api/timeline', array('resource' => 'public_timeline')); |
|---|
| 5 |
$map->connect('api/users', array('resource' => 'users')); |
|---|
| 6 |
$map->connect('api/users/:username', array('resource' => 'user')); |
|---|
| 7 |
$map->connect('api/users/:username/statuses', array('resource' => 'statuses')); |
|---|
| 8 |
$map->connect('api/users/:username/statuses/:id', array('resource' => 'status')); |
|---|
| 9 |
$map->connect('api/users/:username/timeline', array('resource' => 'friends_timeline')); |
|---|
| 10 |
$map->connect('api/users/:username/friends', array('resource' => 'friends')); |
|---|
| 11 |
$map->connect('api/users/:username/friends/:id', array('resource' => 'friend')); |
|---|
| 12 |
$map->connect('api/users/:username/favorites', array('resource' => 'favorites')); |
|---|
| 13 |
$map->connect('api/users/:username/favorites/:id', array('resource' => 'favorite')); |
|---|
| 14 |
return $map; |
|---|
| 15 |
|
|---|
| 16 |
?> |
|---|
| 17 |
|
|---|