|
|
|
|
@ -49,7 +49,19 @@ class App {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This function is to be called
|
|
|
|
|
* This function is to be called to create single routes and restful routes based on the given $routes array.
|
|
|
|
|
*
|
|
|
|
|
* Example code in routes.php of tasks app (it will register two restful resources):
|
|
|
|
|
* $routes = array(
|
|
|
|
|
* 'resources' => array(
|
|
|
|
|
* 'lists' => array('url' => '/tasklists'),
|
|
|
|
|
* 'tasks' => array('url' => '/tasklists/{listId}/tasks')
|
|
|
|
|
* )
|
|
|
|
|
* );
|
|
|
|
|
*
|
|
|
|
|
* $a = new TasksApp();
|
|
|
|
|
* $a->registerRoutes($this, $routes);
|
|
|
|
|
*
|
|
|
|
|
* @param \OC_Router $router
|
|
|
|
|
* @param array $routes
|
|
|
|
|
*/
|
|
|
|
|
|