add temporary file manager

This commit is contained in:
2026-02-19 19:47:42 +03:00
parent cf635f81dd
commit ad4a3367c3
9 changed files with 256 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\HabitController;
use App\Http\Controllers\FileLinkController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
@@ -17,3 +18,11 @@ Route::prefix('habits')->group(function () {
Route::patch('/currentCount', [HabitController::class, 'currentCountUpdate']);
});
});
Route::prefix('files')->group(function () {
Route::post('/upload', [FileLinkController::class, 'upload']);
Route::get('/download/{path}', [FileLinkController::class, 'download'])
->where('path', '.*')
->middleware('signed')
->name('files.api.download');
});