index.php
605 Bytes
<?php
use App\Http\Container\ManageSection\Controllers\UserController;
use Illuminate\Support\Facades\Route;
Route::prefix('manage')->as('manage.')->middleware(['api', 'auth:manage'])
    ->group(static function () {
        Route::prefix('dashboard')->group(__DIR__ . '/dashboard.php');
        Route::prefix('auth')->group(__DIR__ . '/auth.php');
        Route::prefix('audition')->group(__DIR__ . '/audition.php');
        Route::prefix('selection')->group(__DIR__ . '/selection.php');
        Route::get('users/{id}/manage-songs', [UserController::class, 'manageSong'])->whereNumber('id');
    });