Skip to content

Commit

Permalink
fix for download route authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
memu authored Sep 4, 2022
1 parent c360b96 commit 001cca2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
})->name('blv.index');

Route::get('file/{fileIdentifier}/download', function (string $fileIdentifier) {
LogViewer::auth();

$file = LogViewer::getFile($fileIdentifier);

abort_if(is_null($file), 404);
Expand Down

0 comments on commit 001cca2

Please sign in to comment.