X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/3e3dfcc65e13be5a49423bb90fc12e67f6b613dd..729cf0b66d9ccaf381a2150f75fb57c1c98c3b4c:/appinfo/routes.php diff --git a/appinfo/routes.php b/appinfo/routes.php index d4a8cd6..29ce8ad 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -68,6 +68,52 @@ $application->registerRoutes( 'name' => 'gui#tag', 'verb' => 'GET', ), + array( + 'url' => '/note/{guid}.html', + 'name' => 'notes#html', + 'verb' => 'GET', + ), + array( + 'url' => '/note/{guid}.txt', + 'name' => 'notes#text', + 'verb' => 'GET', + ), + array( + 'url' => '/note/{guid}.xml', + 'name' => 'notes#xml', + 'verb' => 'GET', + ), + array( + 'url' => '/note/{guid}', + 'name' => 'gui#note', + 'verb' => 'GET', + ), + array( + 'url' => '/tokens', + 'name' => 'gui#tokens', + 'verb' => 'GET', + ), + array( + 'url' => '/database', + 'name' => 'gui#database', + 'verb' => 'GET', + ), + array( + 'url' => '/database', + 'name' => 'gui#databaseReset', + 'verb' => 'POST', + ), + + array( + 'url' => '/tokens/{username}/{tokenKey}', + 'name' => 'token#delete', + 'verb' => 'DELETE', + ), + array( + 'url' => '/tokens/{username}/{tokenKey}', + 'name' => 'token#deletePost', + 'verb' => 'POST', + ), ) ) );