Welcome to mirror list, hosted at ThFree Co, Russian Federation.

routes.php « appinfo - github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2707108aed451ae24220efac082ab07ffdf8648b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> OCA\QuickDoc\Controller\PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */


return [
    'routes' => [
       ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
       ['name' => 'page#writer', 'url' => '/writer', 'verb' => 'GET'],
       ['name' => 'page#importer', 'url' => '/importer', 'verb' => 'GET'],
       ['name' => 'page#exporter', 'url' => '/exporter', 'verb' => 'GET'],

       ['name' => 'page#settings', 'url' => '/settings', 'verb' => 'GET'],
       ['name' => 'note#getNotePath', 'url' => '/settings/note_path', 'verb' => 'GET'],
       ['name' => 'note#setNotePath', 'url' => '/settings/note_path', 'verb' => 'POST'],
       ['name' => 'note#isFirstRun', 'url' => '/settings/isfirstrun', 'verb' => 'GET'],
       ['name' => 'note#setAppTheme', 'url' => '/settings/app_theme', 'verb' => 'POST'],
       ['name' => 'note#getAppThemes', 'url' => '/settings/themes', 'verb' => 'GET'],
       ['name' => 'note#getEditorCss', 'url' => '/settings/editor_css', 'verb' => 'GET'],
       ['name' => 'note#getSettingsCss', 'url' => '/settings/settings_css', 'verb' => 'GET'],
       ['name' => 'note#getBrowserCss', 'url' => '/settings/browser_css', 'verb' => 'GET'],

       ['name' => 'page#do_echo', 'url' => '/echo', 'verb' => 'POST'],
       ['name' => 'note#openNote', 'url' => '/note/open', 'verb' => 'GET'],
       ['name' => 'note#extractNote', 'url' => '/note/extract', 'verb' => 'GET'],
       ['name' => 'note#createNote', 'url' => '/note/create', 'verb' => 'GET'],
       ['name' => 'note#saveTextToOpenNote', 'url' => '/note/saveText', 'verb' => 'POST'],
       ['name' => 'note#addMediaToOpenNote', 'url' => '/note/open/{id}/addMedia', 'verb' => 'POST'],
       ['name' => 'note#updateMetadata', 'url' =>'notes/metadata', 'verb' => 'POST'],
       ['name' => 'note#deleteMediaFromOpenNote', 'url' => 'note/open/{id}/media', 'verb' => 'DELETE'],
       ['name' => 'note#listMediaOfOpenNote', 'url' => '/note/open/{id}/listMedia', 'verb' => 'GET'],
       ['name' => 'note#getMediaOfOpenNote', 'url' => '/note/open/{id}/getMedia/{media}', 'verb' => 'GET'],

       ['name' => 'note#listDir', 'url' => '/browser/list', 'verb' => 'GET'],
       ['name' => 'note#newFolder', 'url' => '/browser/newfolder', 'verb' => 'POST'],
       ['name' => 'note#getRecent', 'url' => '/recentdb', 'verb' => 'GET'],
       ['name' => 'note#mergeRecentDB', 'url' => '/recentdb/merge', 'verb' => 'GET'],
       ['name' => 'note#getEditorUrl', 'url' => '/note/open/prepare', 'verb' => 'GET'],
       ['name' => 'note#getMedia', 'url' => '/note/getmedia', 'verb' => 'GET'],
       ['name' => 'note#postActions', 'url' => '/recentdb/action', 'verb' => 'POST'],
       ['name' => 'note#getMetadata', 'url' => '/metadata', 'verg' => 'GET'],
       ['name' => 'note#getKeywordsDB', 'url' => '/keywordsdb', 'verb' => 'GET'],
       ['name' => 'note#mergeKeywordsDB', 'url' => '/keywordsdb/merge', 'verb' => 'GET'],
       ['name' => 'note#postKeywordsActions', 'url' => '/keywordsdb/action', 'verb' => 'POST'],

       ['name' => 'note#create', 'url' => '/notes', 'verb' => 'POST'],
       ['name' => 'note#downloadArchive', 'url' => '/notes/export', 'verb' => 'GET'],
       ['name' => 'note#moveNote', 'url' => '/notes/move', 'verb' => 'POST'],
       ['name' => 'note#deleteNote', 'url' => '/notes', 'verb' => 'DELETE'],
       ['name' => 'note#search', 'url' => '/notes/search', 'verb' => 'GET'],
       ['name' => 'note#getSearchCache', 'url' => '/notes/getSearchCache', 'verb' => 'GET'],
       ['name' => 'note#getUbuntuFont', 'url' => '/templates/CarnetElectron/fonts/ubuntu.woff2', 'verb' => 'GET' ],
       ['name' => 'note#getMaterialFont', 'url' => '/templates/CarnetElectron/fonts/material-icons.woff2', 'verb' => 'GET' ],
       ['name' => 'note#getChangelog', 'url' => '/settings/changelog', 'verb' => 'GET' ],
       ['name' => 'note#getLangJson', 'url' => '/settings/lang/json', 'verb' => 'GET' ],
       ['name' => 'note#getUISettings', 'url' => '/settings/ui', 'verb' => 'GET' ],
       ['name' => 'note#setUISettings', 'url' => '/settings/ui', 'verb' => 'POST' ],
       ['name' => 'PublicApi#getOpusEncoder', 'url' => '/recorder/encoderWorker.min.wasm', 'verb' => 'GET' ],
       ['name' => 'PublicApi#getOpusDecoder', 'url' => '/recorder/decoderWorker.min.wasm', 'verb' => 'GET' ],
       ['name' => 'note#getOpusEncoderJavascript', 'url' => '/recorder/encoderWorker.min.js', 'verb' => 'GET' ],
       ['name' => 'note#getOpusDecoderJavascript', 'url' => '/recorder/decoderWorker.min.js', 'verb' => 'GET' ],


       ['name' => 'note#importNote', 'url' => '/note/import', 'verb' => 'POST'],


       ['name' => 'note#getNote', 'url' => '/note/get_note', 'verb' => 'GET'],
    ]
];