Fixing router

This commit is contained in:
Axel 2023-05-25 11:41:56 +02:00
parent 5d9c89e600
commit c663155f3b
Signed by: axel
GPG key ID: 73C0A5961B6BC740

View file

@ -34,7 +34,7 @@ Upload routes
*/ */
Route::middleware(['can.upload'])->group(function() { Route::middleware(['can.upload'])->group(function() {
Route::get('/', [WebController::class, 'homepage'])->name('homepage'); Route::get('/', [WebController::class, 'homepage'])->name('homepage');
Route::get('/new', [WebController::class, 'newBundle'])->name('bundle.new'); Route::post('/new', [WebController::class, 'newBundle'])->name('bundle.new');
Route::prefix('/upload/{bundle}')->controller(UploadController::class)->name('upload.')->group(function() { Route::prefix('/upload/{bundle}')->controller(UploadController::class)->name('upload.')->group(function() {
Route::get('/', 'createBundle')->name('create.show'); Route::get('/', 'createBundle')->name('create.show');