add autodeploy and add basic auth for file uploader
Some checks failed
Deploy back2 / deploy (push) Failing after 46s

This commit is contained in:
2026-04-02 19:42:04 +03:00
parent ad4a3367c3
commit b36cf07635
10 changed files with 244 additions and 56 deletions

View File

@@ -20,7 +20,7 @@ Route::prefix('habits')->group(function () {
});
Route::prefix('files')->group(function () {
Route::post('/upload', [FileLinkController::class, 'upload']);
Route::post('/upload', [FileLinkController::class, 'upload'])->middleware('file.upload.basic');
Route::get('/download/{path}', [FileLinkController::class, 'download'])
->where('path', '.*')
->middleware('signed')