This commit is contained in:
deploy-bot committed 2026-12-04 11:06:52 +00:00
commit a2a48d7ce2
148 files changed
+9946

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
<?php
use Illuminate\Support\Facades\Route;
use IriksIT\Manager\Modules\Media\MediaFileController;
use IriksIT\Manager\Support\Names;
// Files of the media library, for visitors. No session and no cookies: this is a file, not a
// page, and the browser may cache it for good. The address ends in /view on purpose: web servers
// tend to answer anything that ends in .jpg themselves and never ask the app.
Route::get('/media-files/{media}/{filename}/view', MediaFileController::class)
->whereNumber('media')
->middleware('throttle:media-files')
->name(Names::route('media.file'));