60d1e8fc96330f79fa1c0c5be0767bb8a00f2d1c
[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 return [
15 // Login screen of the TYPO3 Backend
16 'login' => [
17 'path' => '/login',
18 'access' => 'public',
19 'target' => Controller\LoginController::class . '::formAction'
20 ],
21
22 // Main backend rendering setup (previously called backend.php) for the TYPO3 Backend
23 'main' => [
24 'path' => '/main',
25 'target' => Controller\BackendController::class . '::mainAction'
26 ],
27
28 // Logout script for the TYPO3 Backend
29 'logout' => [
30 'path' => '/logout',
31 'target' => Controller\LogoutController::class . '::logoutAction'
32 ],
33
34 // Register login frameset
35 'login_frameset' => [
36 'path' => '/login/frame',
37 'target' => Controller\LoginFramesetController::class . '::mainAction'
38 ],
39
40 /** Wizards */
41 // Register backend_layout wizard
42 'wizard_backend_layout' => [
43 'path' => '/wizard/backend_layout',
44 'target' => Controller\BackendLayoutWizardController::class . '::mainAction'
45 ],
46
47 // Register colorpicker wizard
48 'wizard_colorpicker' => [
49 'path' => '/wizard/colorpicker',
50 'target' => Controller\Wizard\ColorpickerController::class . '::mainAction'
51 ],
52
53 // Register table wizard
54 'wizard_table' => [
55 'path' => '/wizard/table',
56 'target' => Controller\Wizard\TableController::class . '::mainAction'
57 ],
58
59 // Register rte wizard
60 'wizard_rte' => [
61 'path' => '/wizard/rte',
62 'target' => Controller\Wizard\RteController::class . '::mainAction'
63 ],
64
65 // Register add wizard
66 'wizard_add' => [
67 'path' => '/wizard/add',
68 'target' => Controller\Wizard\AddController::class . '::mainAction'
69 ],
70
71 // Register list wizard
72 'wizard_list' => [
73 'path' => '/wizard/list',
74 'target' => Controller\Wizard\ListController::class . '::mainAction'
75 ],
76
77 // Register edit wizard
78 'wizard_edit' => [
79 'path' => '/wizard/edit',
80 'target' => Controller\Wizard\EditController::class . '::mainAction'
81 ],
82
83 // Register link wizard
84 'wizard_link' => [
85 'path' => '/wizard/link/browse',
86 'target' => \TYPO3\CMS\Backend\Controller\LinkBrowserController::class . '::mainAction'
87 ],
88
89 /** File- and folder-related routes */
90
91 // File navigation tree
92 'file_navframe' => [
93 'path' => '/folder/tree',
94 'target' => Controller\FileSystemNavigationFrameController::class . '::mainAction'
95 ],
96
97 // Editing the contents of a file
98 'file_edit' => [
99 'path' => '/file/editcontent',
100 'target' => Controller\File\EditFileController::class . '::mainAction'
101 ],
102
103 // Create a new folder
104 'file_newfolder' => [
105 'path' => '/file/new',
106 'target' => Controller\File\CreateFolderController::class . '::mainAction'
107 ],
108
109 // Rename a file
110 'file_rename' => [
111 'path' => '/file/rename',
112 'target' => Controller\File\RenameFileController::class . '::mainAction'
113 ],
114
115 // Replace a file with a different one
116 'file_replace' => [
117 'path' => '/file/replace',
118 'target' => Controller\File\ReplaceFileController::class . '::mainAction'
119 ],
120
121 // Upload new files
122 'file_upload' => [
123 'path' => '/file/upload',
124 'target' => Controller\File\FileUploadController::class . '::mainAction'
125 ],
126
127 // Add new online media
128 'online_media' => [
129 'path' => '/online-media',
130 'target' => Controller\OnlineMediaController::class . '::mainAction'
131 ],
132
133 /** DB Records-related routes */
134 // Register record history module
135 'record_history' => [
136 'path' => '/record/history',
137 'target' => Controller\ContentElement\ElementHistoryController::class . '::mainAction'
138 ],
139
140 // Register new record
141 'db_new' => [
142 'path' => '/record/new',
143 'target' => Controller\NewRecordController::class . '::mainAction'
144 ],
145
146 // Register new content element module
147 'new_content_element' => [
148 'path' => '/record/content/new',
149 'target' => Controller\ContentElement\NewContentElementController::class . '::mainAction'
150 ],
151
152 // Register move element module
153 'move_element' => [
154 'path' => '/record/move',
155 'target' => Controller\ContentElement\MoveElementController::class . '::mainAction'
156 ],
157
158 // Register show item module
159 'show_item' => [
160 'path' => '/record/info',
161 'target' => Controller\ContentElement\ElementInformationController::class . '::mainAction'
162 ],
163
164 // Register browser
165 'browser' => [
166 'path' => '/record/browse',
167 'target' => \TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController::class . '::mainAction'
168 ],
169
170 // Dummy document - displays nothing but background color.
171 'dummy' => [
172 'path' => '/empty',
173 'target' => Controller\DummyController::class . '::mainAction'
174 ],
175
176 /** TYPO3 Core Engine-related routes */
177 /**
178 * TCE gateway (TYPO3 Core Engine) for database handling
179 * This script is a gateway for POST forms to \TYPO3\CMS\Core\DataHandling\DataHandler
180 * that manipulates all information in the database!!
181 * For syntax and API information, see the document 'TYPO3 Core APIs'
182 */
183 'tce_db' => [
184 'path' => '/record/commit',
185 'target' => Controller\SimpleDataHandlerController::class . '::mainAction'
186 ],
187
188 /**
189 * Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms.
190 * This script serves as the fileadministration part of the TYPO3 Core Engine.
191 * Basically it includes two libraries which are used to manipulate files on the server.
192 *
193 * For syntax and API information, see the document 'TYPO3 Core APIs'
194 */
195 'tce_file' => [
196 'path' => '/file/commit',
197 'target' => Controller\File\FileController::class . '::mainAction'
198 ],
199
200 /**
201 * Main form rendering script
202 * By sending certain parameters to this script you can bring up a form
203 * which allows the user to edit the content of one or more database records.
204 */
205 'record_edit' => [
206 'path' => '/record/edit',
207 'target' => Controller\EditDocumentController::class . '::mainAction'
208 ]
209 ];