controller(AuthController::class)->group(function () { Route::post('/sign-in', 'signIn'); Route::post('/social-login', 'socialLogin'); Route::post('/sign-up', 'signUp'); Route::post('/forgot-password', 'forgotPassword')->name('forgot.password'); Route::post('/verify-otp', 'otpVerify'); Route::post('/reset-password', 'resetPassword'); }); Route::middleware('auth:api', 'role:user')->group(function () { Route::get('/resend-token', [AuthController::class, 'tokenResend']); Route::get('/logout', [AuthController::class, 'logout']); Route::get('/profiles', [UserController::class, 'index']); Route::post('/update-password', [UserController::class, 'passwordUpdate']); Route::post('/update/profile-photo', [UserController::class, 'updateProfile']); Route::delete('/delete/profile', [UserController::class, 'deleteProfile']); Route::controller(FavoriteConstroller::class)->group(function () { Route::get('/favorites', 'index'); Route::post('/favorites', 'store'); }); Route::get('/my-subscription/plans', [SubscriptionController::class, 'myPlans']); Route::post('/get/subscription', [SubscriptionController::class, 'store']); }); Route::get('/categories', [CategoryController::class, 'index']); Route::get('/albams', [AlbamController::class, 'index']); Route::get('/play-lists', [PlayListController::class, 'index']); Route::get('/play-lists/{play_list}', [PlayListController::class, 'show']); Route::get('/play-lists/{playlist}/content', [PlayListController::class, 'readmore']); Route::get('/shift', [ShiftController::class, 'index']); Route::get('/banner', [BannerController::class, 'index']); Route::get('/subscription/plans', [SubscriptionController::class, 'index']); //Notifications Route::controller(NotificationsController::class)->group(function () { Route::get('/notifications', 'index'); Route::post('/notifications', 'store'); Route::post('/notifications/{notification}', 'update'); Route::delete('/notifications/{notification}', 'delete'); }); Route::get('/legal-pages/{page:slug}', [SettingController::class, 'show']); Route::get('/general-settings', [SettingController::class, 'generalSettings']); Route::get('/change/{local}/language', [SettingController::class, 'switchLang']);