get('/user', function (Request $request) { // return $request->user(); // }); Route::group(['as' => 'api.'], function () { Route::apiResource('collections', CollectionController::class); Route::delete('collections/{collection}', [CollectionController::class, "destroy"])->withTrashed(); Route::get('{collection_name}/{uuid}.{extention}', [FileController::class, 'show'])->name('file.show'); Route::get('{collection_name}/{path}', [FileController::class, 'private'])->name('file.private'); Route::post('{collection_name}', [FileController::class, 'store'])->name('file.store'); });