[TASK] Migrate tce_db, tce_file and FormEngine entry points to routing
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / Backend / Routes.php
1 <?php
2 use TYPO3\CMS\Backend\Controller;
3
4 /**
5 * Definitions for routes provided by EXT:backend
6 * Contains all "regular" routes for entry points
7 *
8 * Please note that this setup is preliminary until all core use-cases are set up here.
9 * Especially some more properties regarding modules will be added until TYPO3 CMS 7 LTS, and might change.
10 *
11 * Currently the "access" property is only used so no token creation + validation is made,
12 * but will be extended further.
13 *
14 * @internal This is not a public API yet until TYPO3 CMS 7 LTS.
15 */
16 return [
17 // Login screen of the TYPO3 Backend
18 'login' => [
19 'path' => '/login',
20 'access' => 'public',
21 'controller' => Controller\LoginController::class
22 ],
23
24 // Main backend rendering setup (backend.php) for the TYPO3 Backend
25 'main' => [
26 'path' => '/main',
27 'controller' => Controller\BackendController::class
28 ],
29
30 // Logout script for the TYPO3 Backend
31 'logout' => [
32 'path' => '/logout',
33 'controller' => Controller\LogoutController::class
34 ],
35
36 // Register login frameset
37 'login_frameset' => [
38 'path' => '/login/frame',
39 'controller' => Controller\LoginFramesetController::class
40 ],
41
42 /** Wizards */
43 // Register backend_layout wizard
44 'wizard_backend_layout' => [
45 'path' => '/wizard/backend_layout',
46 'controller' => Controller\BackendLayoutWizardController::class
47 ],
48
49 // Register colorpicker wizard
50 'wizard_colorpicker' => [
51 'path' => '/wizard/colorpicker',
52 'controller' => Controller\Wizard\ColorpickerController::class
53 ],
54
55 // Register table wizard
56 'wizard_table' => [
57 'path' => '/wizard/table',
58 'controller' => Controller\Wizard\TableController::class
59 ],
60
61 // Register rte wizard
62 'wizard_rte' => [
63 'path' => '/wizard/rte',
64 'controller' => Controller\Wizard\RteController::class
65 ],
66
67 // Register add wizard
68 'wizard_add' => [
69 'path' => '/wizard/add',
70 'controller' => Controller\Wizard\AddController::class
71 ],
72
73 // Register list wizard
74 'wizard_list' => [
75 'path' => '/wizard/list',
76 'controller' => Controller\Wizard\ListController::class
77 ],
78
79 // Register edit wizard
80 'wizard_edit' => [
81 'path' => '/wizard/edit',
82 'controller' => Controller\Wizard\EditController::class
83 ],
84
85
86 /** File- and folder-related routes */
87 // Editing the contents of a file
88 'file_edit' => [
89 'path' => '/file/editcontent',
90 'controller' => Controller\File\EditFileController::class
91 ],
92
93 // Create a new folder
94 'file_newfolder' => [
95 'path' => '/file/new',
96 'controller' => Controller\File\CreateFolderController::class
97 ],
98
99 // Rename a file
100 'file_rename' => [
101 'path' => '/file/rename',
102 'controller' => Controller\File\RenameFileController::class
103 ],
104
105 // Replace a file with a different one
106 'file_replace' => [
107 'path' => '/file/replace',
108 'controller' => Controller\File\ReplaceFileController::class
109 ],
110
111 // Upload new files
112 'file_upload' => [
113 'path' => '/file/upload',
114 'controller' => Controller\File\FileUploadController::class
115 ],
116
117 /** DB Records-related routes */
118 // Register record history module
119 'record_history' => [
120 'path' => '/record/history',
121 'controller' => Controller\ContentElement\ElementHistoryController::class
122 ],
123
124 // Register new record
125 'db_new' => [
126 'path' => '/record/new',
127 'controller' => Controller\NewRecordController::class
128 ],
129
130 // Register new content element module
131 'new_content_element' => [
132 'path' => '/record/content/new',
133 'controller' => Controller\ContentElement\NewContentElementController::class
134 ],
135
136 // Register move element module
137 'move_element' => [
138 'path' => '/record/move',
139 'controller' => Controller\ContentElement\MoveElementController::class
140 ],
141
142 // Register show item module
143 'show_item' => [
144 'path' => '/record/info',
145 'controller' => Controller\ContentElement\ElementInformationController::class
146 ],
147
148 // Register browser
149 'browser' => [
150 'path' => '/record/browse',
151 'controller' => \TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController::class
152 ],
153
154 // Dummy document - displays nothing but background color.
155 'dummy' => [
156 'path' => '/empty',
157 'controller' => Controller\DummyController::class
158 ],
159
160 /** TYPO3 Core Engine-related routes */
161 /**
162 * TCE gateway (TYPO3 Core Engine) for database handling
163 * This script is a gateway for POST forms to \TYPO3\CMS\Core\DataHandling\DataHandler
164 * that manipulates all information in the database!!
165 * For syntax and API information, see the document 'TYPO3 Core APIs'
166 */
167 'tce_db' => [
168 'path' => '/record/commit',
169 'controller' => Controller\SimpleDataHandlerController::class
170 ],
171
172 /**
173 * Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms.
174 * This script serves as the fileadministration part of the TYPO3 Core Engine.
175 * Basically it includes two libraries which are used to manipulate files on the server.
176 *
177 * For syntax and API information, see the document 'TYPO3 Core APIs'
178 */
179 'tce_file' => [
180 'path' => '/file/commit',
181 'controller' => Controller\File\FileController::class
182 ],
183
184 /**
185 * Main form rendering script
186 * By sending certain parameters to this script you can bring up a form
187 * which allows the user to edit the content of one or more database records.
188 */
189 'record_edit' => [
190 'path' => '/record/edit',
191 'controller' => Controller\EditDocumentController::class
192 ],
193 ];