X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/db2f09d46ce2f3a46be1b6f6e031492966242025..1d7387a458d893664e2537ec811bc053d95600b7:/appinfo/routes.php diff --git a/appinfo/routes.php b/appinfo/routes.php index 5567670..31e5692 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -6,22 +6,6 @@ $application->registerRoutes( $this, array( 'routes' => array( - array( - 'url' => '/test', - 'name' => 'access#test', - ), - - array( - 'url' => '/authorize', - 'name' => 'access#authorize', - 'verb' => 'POST', - ), - array( - 'url' => '/login', - 'name' => 'access#login', - 'verb' => 'GET', - ), - array( 'url' => '/oauth/access_token', 'name' => 'oauth#accessToken', @@ -49,23 +33,28 @@ $application->registerRoutes( 'verb' => 'GET', ), array( - 'url' => '/api/1.0/{user}/note/{guid}', - 'name' => 'api#note', + 'url' => '/api/1.0/', + 'name' => 'api#indexSlash', 'verb' => 'GET', ), array( - 'url' => '/api/1.0/{user}/notes', - 'name' => 'api#notes', + 'url' => '/api/1.0/{username}', + 'name' => 'api#user', 'verb' => 'GET', ), array( - 'url' => '/api/1.0/{user}/notes', + 'url' => '/api/1.0/{username}/notes', 'name' => 'api#notes', - 'verb' => 'POST', + 'verb' => 'GET', ), array( - 'url' => '/api/1.0/{user}', - 'name' => 'api#user', + 'url' => '/api/1.0/{username}/notes', + 'name' => 'api#notesSave', + 'verb' => 'PUT', + ), + array( + 'url' => '/api/1.0/{username}/note/{guid}', + 'name' => 'api#note', 'verb' => 'GET', ), )