add autodeploy and add basic auth for file uploader
Some checks failed
Deploy back2 / deploy (push) Failing after 46s
Some checks failed
Deploy back2 / deploy (push) Failing after 46s
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -8,8 +8,10 @@ Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
Route::get('/files', [FileLinkController::class, 'index'])->name('files.index');
|
||||
Route::post('/files', [FileLinkController::class, 'uploadWeb'])->name('files.upload');
|
||||
Route::middleware('file.upload.basic')->group(function () {
|
||||
Route::get('/files', [FileLinkController::class, 'index'])->name('files.index');
|
||||
Route::post('/files', [FileLinkController::class, 'uploadWeb'])->name('files.upload');
|
||||
});
|
||||
Route::get('/files/download/{path}', [FileLinkController::class, 'download'])
|
||||
->where('path', '.*')
|
||||
->middleware('signed')
|
||||
|
||||
Reference in New Issue
Block a user