-
Notifications
You must be signed in to change notification settings - Fork 126
/
routes.php
29 lines (16 loc) · 1.51 KB
/
routes.php
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
<?php
Route::group(['middleware' => \AetherUpload\ConfigMapper::get('middleware_base')], function () {
if ( Config::get('app.env') !== 'production' ) {
Route::get('/aetherupload', '\AetherUpload\UploadController@getExamplePage');
Route::post('/aetherupload', '\AetherUpload\UploadController@postExamplePage');
Route::get('/aetherupload/example_source', '\AetherUpload\UploadController@examplePageSource');
}
if ( \AetherUpload\Util::isStorageHost() ) {
Route::post(\AetherUpload\ConfigMapper::get('route_preprocess'), '\AetherUpload\UploadController@preprocess')->middleware(\AetherUpload\ConfigMapper::get('middleware_preprocess'));
Route::options(\AetherUpload\ConfigMapper::get('route_preprocess'), '\AetherUpload\UploadController@options');
Route::post(\AetherUpload\ConfigMapper::get('route_uploading'), '\AetherUpload\UploadController@saveChunk')->middleware(\AetherUpload\ConfigMapper::get('middleware_uploading'));
Route::options(\AetherUpload\ConfigMapper::get('route_uploading'), '\AetherUpload\UploadController@options');
Route::get(\AetherUpload\ConfigMapper::get('route_display').'/{uri}', '\AetherUpload\ResourceController@display')->middleware(\AetherUpload\ConfigMapper::get('middleware_display'));
Route::get(\AetherUpload\ConfigMapper::get('route_download').'/{uri}/{newName}', '\AetherUpload\ResourceController@download')->middleware(\AetherUpload\ConfigMapper::get('middleware_download'));
}
});