- public sharing refactored part 2

This commit is contained in:
Peter Papp
2021-03-19 09:04:18 +01:00
parent db9900fcfb
commit ed8ab2978f
22 changed files with 1296 additions and 1190 deletions
+2 -4
View File
@@ -4,7 +4,6 @@ use App\Http\Controllers\App\AppFunctionsController;
use App\Http\Controllers\Sharing\BrowseShareController;
use App\Http\Controllers\Sharing\EditShareItemsController;
use App\Http\Controllers\FileManager\ShareController;
use App\Http\Controllers\Sharing\ServeSharedController;
// Browse functions
Route::group(['prefix' => 'editor'], function () {
@@ -23,12 +22,11 @@ Route::group(['prefix' => 'zip'], function () {
// Browse share content
Route::group(['prefix' => 'browse'], function () {
Route::post('/authenticate/{shared}', [BrowseShareController::class, 'authenticate']);
Route::get('/navigation/{shared}', [BrowseShareController::class, 'navigation_tree']);
Route::get('/folders/{id}/{shared}', [BrowseShareController::class, 'browse_folder']);
Route::get('/file/{shared}', [BrowseShareController::class, 'get_single_file']);
Route::get('/search/{shared}', [BrowseShareController::class, 'search']);
Route::post('/authenticate/{shared}', [ServeSharedController::class, 'authenticate']);
Route::get('/file/{shared}', [ServeSharedController::class, 'file_public']);
Route::get('/share/{shared}', [ShareController::class, 'show']);
});