mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
[newPage: Buecherverleih] zipFile solved
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
use App\Http\Livewire\News\InternArticleView;
|
||||
use Illuminate\Http\Request;
|
||||
use Laravel\Socialite\Facades\Socialite;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
||||
Route::middleware([])
|
||||
->get('/bsc', \App\Http\Livewire\Specials\BalticSeaCircle::class)
|
||||
@@ -384,3 +385,51 @@ Route::middleware([
|
||||
});
|
||||
|
||||
Route::feeds();
|
||||
|
||||
Route::get('/download', function () {
|
||||
|
||||
// Get the file path from the public folder
|
||||
$filePath = public_path("buecherverleih.zip");
|
||||
|
||||
$filename = "buecherverleih.zip";
|
||||
|
||||
// Check if the file exists
|
||||
if (!file_exists($filePath)) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
// Generate a response with the file for download
|
||||
return Response::download($filePath, $filename);
|
||||
});
|
||||
|
||||
Route::get('/download-flyer', function () {
|
||||
|
||||
// Get the file path from the public folder
|
||||
$filePath = public_path("flyer.zip");
|
||||
|
||||
$filename = "flyer.zip";
|
||||
|
||||
// Check if the file exists
|
||||
if (!file_exists($filePath)) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
// Generate a response with the file for download
|
||||
return Response::download($filePath, $filename);
|
||||
});
|
||||
|
||||
Route::get('/download-etiketten', function () {
|
||||
|
||||
// Get the file path from the public folder
|
||||
$filePath = public_path("etiketten.zip");
|
||||
|
||||
$filename = "etiketten.zip";
|
||||
|
||||
// Check if the file exists
|
||||
if (!file_exists($filePath)) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
// Generate a response with the file for download
|
||||
return Response::download($filePath, $filename);
|
||||
});
|
||||
Reference in New Issue
Block a user