mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
19 lines
925 B
PHP
19 lines
925 B
PHP
<?php
|
|
return [
|
|
'resources' => [
|
|
'note' => ['url' => '/notes'],
|
|
'tag' => ['url' => '/tags'],
|
|
'note_api' => ['url' => '/api/0.1/notes']
|
|
],
|
|
'routes' => [
|
|
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
|
|
['name' => 'note_api#preflighted_cors', 'url' => '/api/0.1/{path}',
|
|
'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']],
|
|
['name' => 'note#get_user_groups_and_users_with_share', 'url' => '/api/0.1/getusergroups', 'verb' => 'POST'],
|
|
['name' => 'note#add_group_share', 'url' => '/api/0.1/groups/addshare', 'verb' => 'POST'],
|
|
['name' => 'note#remove_group_share', 'url' => '/api/0.1/groups/removeshare', 'verb' => 'POST'],
|
|
['name' => 'note#add_user_share', 'url' => '/api/0.1/users/addshare', 'verb' => 'POST'],
|
|
['name' => 'note#remove_user_share', 'url' => '/api/0.1/users/removeshare', 'verb' => 'POST']
|
|
]
|
|
];
|