Files
quicknotes/appinfo/routes.php
Matias De lellis b6db15d8d2 Add dashboard widget to show the latest notes. Issue #51
p.s: I would like to be able to select a particular tag to show, but
none of the dashboard widgets are configurable.

I hate increasing the app size from 300k to almost 3 mb for something
so simple, but we must adapt to the majority and use vue here.
2022-05-25 10:29:20 -03:00

51 lines
905 B
PHP

<?php
return ['resources' =>
[
'note' => ['url' => '/notes'],
'noteApi' => ['url' => '/api/v1/notes']
],
'routes' => [
// Main page
[
'name' => 'page#index',
'url' => '/',
'verb' => 'GET'
],
// Dashboard
[
'name' => 'note#dashboard',
'url' => '/notes/dashboard',
'verb' => 'GET',
],
// Share
[
'name' => 'share#destroy',
'url' => '/share/{noteId}',
'verb' => 'DELETE'
],
// Upload attachments
[
'name' => 'AttachmentApi#upload',
'url' => '/api/v1/attachments',
'verb' => 'POST'
],
// User Settings
[
'name' => 'settings#setUserValue',
'url' => '/setuservalue',
'verb' => 'POST'
],
[
'name' => 'settings#getUserValue',
'url' => '/getuservalue',
'verb' => 'GET'
],
[
'name' => 'noteApi#preflighted_cors',
'url' => '/api/v1/{path}',
'verb' => 'OPTIONS',
'requirements' => ['path' => '.+']
]
]
];