group(function () { Route::post('/v1/check-age', [AuthController::class, 'checkAge']); Route::get('/v1/list-states', [AuthController::class, 'viewstates']); Route::post('/v1/register', [AuthController::class, 'register']); Route::post('/v1/login', [AuthController::class, 'login']); Route::post('/v1/forgot-password', [AuthController::class, 'forgotPassword']); Route::post('/v1/password/verify-otp', [AuthController::class, 'verifyOtpForgotPassword']); Route::post('/v1/change-password', [AuthController::class, 'changePassword']); Route::post('/v1/resend-otp', [AuthController::class, 'resendOtp']); Route::group(['middleware' => ['customer.jwt.verify']], function () { //*******************************************************CMS******************************************************** Route::get('/v1/list-of-faqs', [CMSApiController::class, 'getfaq']); Route::get('/v1/list-of-about-us', [CMSApiController::class, 'getAboutUs']); Route::get('/v1/list-of-privacy-policy', [CMSApiController::class, 'getPrivacyPolicy']); Route::get('/v1/list-of-news-articles', [CMSApiController::class, 'getNewsArticles']); Route::get('/v1/list-of-terms-conditions', [CMSApiController::class, 'getTermsConditon']); //*******************************************************Contact Us******************************************************** Route::post('/v1/contact-us', [ContactUsApiController::class, 'addContactForm']); //*******************************************************customer profile******************************************************** Route::get('/v1/fetch-user-profile', [CustomerControllerApi::class, 'getUserProfileDetail']); Route::post('/v1/update-user-profile', [CustomerControllerApi::class, 'updateUserProfileDetail']); Route::post('/v1/reset-user-password', [CustomerControllerApi::class, 'resetUserPassword']); Route::post('/v1/customer-logout', [CustomerControllerApi::class, 'customerLogout']); Route::post('/v1/delete_account', [CustomerControllerApi::class, 'destroyAccount']); //*******************************************************Restaurant******************************************************** Route::get('/v1/list-of-restaurant', [RestaurantControllerApi::class, 'getRestaurant']); }); });