diff --git a/routes/api.php b/routes/api.php index 084f7e3fd5..d351d403d4 100644 --- a/routes/api.php +++ b/routes/api.php @@ -250,7 +250,7 @@ // Files Route::get('files', [FileController::class, 'index'])->name('files.index')->middleware('can:view-files'); Route::get('files/{file}', [FileController::class, 'show'])->name('files.show')->middleware('can:view,file'); - Route::get('files/{file}/logs', [FileController::class, 'showLogs'])->name('file_logs.show')->middleware('can:view,file'); + Route::get('files/{file}/logs', [FileController::class, 'showLogs'])->name('file_logs.show'); Route::get('files/{file}/contents', [FileController::class, 'download'])->name('files.download')->middleware('can:view,file'); Route::post('files', [FileController::class, 'store'])->name('files.store')->middleware('can:create,ProcessMaker\Models\Media'); Route::put('files/{file}', [FileController::class, 'update'])->name('files.update')->middleware('can:update,file');