user.php
1.9 KB
<?php
use App\Http\Container\AdminSection\Controllers\User\BusinessController;
use App\Http\Container\AdminSection\Controllers\User\CertifyController;
use App\Http\Container\AdminSection\Controllers\User\IndexController;
use App\Http\Container\AdminSection\Controllers\User\MemberController;
use App\Http\Container\AdminSection\Controllers\User\RegisterController;
use App\Http\Container\AdminSection\Controllers\User\SingerController;
Route::get('/', [IndexController::class, 'index'])->withTrashed();
Route::get('{user}', [IndexController::class, 'show'])->whereNumber('user')->withTrashed();
Route::put('{user}', [IndexController::class, 'update'])->whereNumber('user')->withTrashed();
Route::delete('{user}', [IndexController::class, 'destroy'])->whereNumber('user')->withTrashed();
Route::put('{user}/change-status', [IndexController::class, 'changeStatus'])->whereNumber('user')->withTrashed();
Route::put('{user}/change-pwd', [IndexController::class, 'changePwd'])->whereNumber('user')->withTrashed();
Route::get('{id}/listen-songs', [IndexController::class, 'listenSong'])->whereNumber('id');
Route::get('{id}/like-songs', [IndexController::class, 'likeSong'])->whereNumber('id');
Route::get('{id}/submit-songs', [IndexController::class, 'submitSong'])->whereNumber('id');
Route::get('{id}/manage-songs', [IndexController::class, 'manageSong'])->whereNumber('id');
Route::get('{id}/dynamics', [IndexController::class, 'dynamic'])->whereNumber('id');
Route::get('{id}/members', [MemberController::class, 'index']);
Route::delete('{id}/members', [MemberController::class, 'destroy']);
Route::apiResource('registers', RegisterController::class)->withTrashed()->only('index');
Route::apiResource('singers', SingerController::class)->withTrashed()->only('index');
Route::apiResource('business', BusinessController::class)->withTrashed()->only('index');
Route::apiResource('certifies', CertifyController::class)->only('index', 'update');