middleware(['auth', 'verified'])->name('dashboard'); Route::middleware('auth')->group(function () { Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); }); Route::get('/gallery', [GalleryController::class, "index"]) ->middleware(['auth', 'verified']) ->name('gallery'); // Api canciones // Route::get('/canciones', [SongController::class, 'index'])->name('canciones'); Route::get('/canciones/stream/{id}', [SongController::class, 'stream']); Route::post('/canciones', [SongController::class, 'store']); Route::put('/canciones/{id}', [SongController::class, 'update']); Route::delete('/canciones/{id}', [SongController::class, 'destroy'])->middleware(['auth', 'verified']); Route::get('/canciones/cover/{id}', [SongController::class], 'viewcover') require __DIR__.'/auth.php';