initial commit
This commit is contained in:
35
routes/web.php
Normal file
35
routes/web.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\ProfileController;
|
||||
use App\Http\Controllers\RootController;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
use App\Http\Controllers\SongController;
|
||||
|
||||
Route::get('/', [RootController::class, 'index']);
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
return Inertia::render('Dashboard');
|
||||
})->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', function () {
|
||||
return Inertia::render('Gallery');
|
||||
})->middleware(['auth', 'verified'])->name('gallery');
|
||||
|
||||
// Api canciones
|
||||
//
|
||||
Route::get('/songs', [SongController::class, 'index']);
|
||||
Route::get('/songs/stream/{id}', [SongController::class, 'stream']);
|
||||
Route::post('/songs', [SongController::class, 'store']);
|
||||
Route::put('/songs/{id}', [SongController::class, 'update']);
|
||||
Route::delete('/songs/{id}', [SongController::class, 'destroy']);
|
||||
|
||||
require __DIR__.'/auth.php';
|
||||
Reference in New Issue
Block a user