231 lines
16 KiB
PHP
231 lines
16 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use Illuminate\Http\Request;
|
||
|
|
use Illuminate\Support\Facades\Route;
|
||
|
|
use App\Http\Controllers\API\RegisterController;
|
||
|
|
use App\Http\Controllers\API\LoginController;
|
||
|
|
use App\Http\Controllers\API\ProfileController;
|
||
|
|
use App\Http\Controllers\API\ContactController;
|
||
|
|
use App\Http\Controllers\API\ManageBannerController;
|
||
|
|
use App\Http\Controllers\API\FaqController;
|
||
|
|
use App\Http\Controllers\API\ShortClipsController;
|
||
|
|
use App\Http\Controllers\API\MoodOMeterController;
|
||
|
|
use App\Http\Controllers\API\AboutController;
|
||
|
|
use App\Http\Controllers\API\UserOverviewController;
|
||
|
|
use App\Http\Controllers\API\ShareYourThoughtsController;
|
||
|
|
use App\Http\Controllers\API\ManageActivityController;
|
||
|
|
use App\Http\Controllers\API\TestimonialController;
|
||
|
|
use App\Http\Controllers\API\LeaderBordMasterContoller;
|
||
|
|
use App\Http\Controllers\API\DietPlanController;
|
||
|
|
use App\Http\Controllers\API\QuizController;
|
||
|
|
use App\Http\Controllers\API\ManageFeedbackController;
|
||
|
|
use App\Http\Controllers\API\RateUsController;
|
||
|
|
use App\Http\Controllers\OneSignal\API\CreateNotificationOneSignalController;
|
||
|
|
use App\Http\Controllers\OneSignal\API\ViewDevicesOneSignalController;
|
||
|
|
use App\Http\Controllers\API\ManagePodcastController;
|
||
|
|
use App\Http\Controllers\API\ManageNotificationController;
|
||
|
|
use App\Http\Controllers\API\StepCountController;
|
||
|
|
use App\Http\Controllers\API\GetAppVersionCotroller;
|
||
|
|
use App\Http\Controllers\API\NewsAndArticleController;
|
||
|
|
use App\Http\Controllers\API\PeriodDatesController;
|
||
|
|
use App\Http\Controllers\API\UserController;
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/*
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
| API Routes
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
|
|
||
|
|
| Here is where you can register API routes for your application. These
|
||
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
||
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
||
|
|
|
|
||
|
|
*/
|
||
|
|
|
||
|
|
// Added By: Pradyumn Dwivedi; Added at: 9 july 2024; Use: To log api execution time
|
||
|
|
Route::group(['middleware' => ['log_execution_time']], function() {
|
||
|
|
|
||
|
|
//*******************************************************RegisterController start here********************************************************
|
||
|
|
Route::post('/register', [RegisterController::class, 'storeRegistrationData']);
|
||
|
|
//*******************************************************RegisterController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************LoginController start here********************************************************
|
||
|
|
Route::post('/login', [LoginController::class, 'login']);
|
||
|
|
Route::post('/otp/generate', [LoginController::class, 'generate']);
|
||
|
|
Route::post('/otp/validate_otp', [LoginController::class, 'verifyOtp']);
|
||
|
|
Route::post('/otp/resend', [LoginController::class, 'resend_otp']);
|
||
|
|
Route::post('/otp/create_new_pass_with_otp', [LoginController::class, 'create_new_pass_with_otp']);
|
||
|
|
Route::put('/otp/update_password', [LoginController::class, 'update_password']);
|
||
|
|
Route::post('/reset_pass', [LoginController::class, 'resetPassword']);
|
||
|
|
//*******************************************************LoginController end here********************************************************
|
||
|
|
|
||
|
|
|
||
|
|
Route::group(['middleware' => ['jwt.verify']], function() {
|
||
|
|
|
||
|
|
Route::post('/storeDates', [PeriodDatesController::class, 'storeDates']);
|
||
|
|
Route::get('/getPeriodDates', [PeriodDatesController::class, 'getPeriodDates']);
|
||
|
|
Route::post('/deletePeriodDates', [PeriodDatesController::class, 'deletePeriodDates']);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
//*******************************************************ProfileController start here********************************************************
|
||
|
|
Route::post('/update_profile', [ProfileController::class, 'profileUpdate']);
|
||
|
|
Route::get('/get_user_data', [ProfileController::class, 'index']);
|
||
|
|
Route::get('/view_profile_frds', [ProfileController::class, 'viewProfile']);
|
||
|
|
//*******************************************************ProfileController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************ShareYourThoughtsController start here********************************************************
|
||
|
|
Route::post('AddThoughts', [ShareYourThoughtsController::class, "add_thoughts"]);
|
||
|
|
Route::get('GetThoughts', [ShareYourThoughtsController::class, "get_thought_id"]);
|
||
|
|
|
||
|
|
//*******************************************************ShareYourThoughtsController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************QuizController start here********************************************************
|
||
|
|
Route::post("storeQuizPoints",[QuizController::class, "storeQuizPoints"]);
|
||
|
|
Route::get("getUerQuizpoints",[QuizController::class, "getUerQuizpoints"]);
|
||
|
|
//*******************************************************QuizController end here********************************************************
|
||
|
|
|
||
|
|
|
||
|
|
//*******************************************************ManageBannerController start here********************************************************
|
||
|
|
Route::get('/manageBanner', [ManageBannerController::class, 'manage_banner']);
|
||
|
|
//*******************************************************ManageBannerController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************GetAppVersionCotroller start here********************************************************
|
||
|
|
Route::post('/getOlderVersion', [GetAppVersionCotroller::class, 'getOlderVersion']);
|
||
|
|
Route::get('/getNewVersion', [GetAppVersionCotroller::class, 'getNewVersion']);
|
||
|
|
//*******************************************************GetAppVersionCotroller end here********************************************************
|
||
|
|
|
||
|
|
|
||
|
|
//*******************************************************ContactController start here********************************************************
|
||
|
|
Route::post('storeContactUs', [ContactController::class, "store_contact_us"]);
|
||
|
|
//*******************************************************ContactController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************FaqController start here********************************************************
|
||
|
|
Route::get('getFaq', [FaqController::class, "get_faq"]);
|
||
|
|
//*******************************************************FaqController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************ShortClipsController start here********************************************************
|
||
|
|
Route::post('storeShortClips', [ShortClipsController::class, "store_short_clips"]);
|
||
|
|
Route::post('likeShortClips', [ShortClipsController::class, "like_short_clips"]);
|
||
|
|
Route::get('getShortClipsById/{id}', [ShortClipsController::class, "get_short_clips_by_id"]);
|
||
|
|
Route::put('updateShortClips', [ShortClipsController::class, "update_short_clips"]);
|
||
|
|
Route::get('getShortClips', [ShortClipsController::class, "get_short_clips"]);
|
||
|
|
Route::get('getShortClipsLikes', [ShortClipsController::class, "get_short_clips_likes"]);
|
||
|
|
|
||
|
|
//*******************************************************ShortClipsController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************MoodOMeterController start here********************************************************
|
||
|
|
Route::post('storeMoodOMeter', [MoodOMeterController::class, "store_mood_o_meter"]);
|
||
|
|
Route::get('getMoodOMeter', [MoodOMeterController::class, "get_mood_o_meter"]);
|
||
|
|
Route::get('getMoodOMeterValue', [MoodOMeterController::class, "get_mood_o_meter_mood"]);
|
||
|
|
//*******************************************************MoodOMeterController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************AboutController start here********************************************************
|
||
|
|
Route::get('getAboutUs', [AboutController::class, "get_About_Us"]);
|
||
|
|
//*******************************************************AboutController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************UserOverviewController start here********************************************************
|
||
|
|
Route::post("addUserOverview",[UserOverviewController::class, "add_user_overview"]);
|
||
|
|
Route::get("getUserOverview",[UserOverviewController::class, "get_user_overview_by_id"]);
|
||
|
|
Route::get("showUserOverview",[UserOverviewController::class, "show_user_overview"]);
|
||
|
|
Route::post("showUserOverview_new",[UserOverviewController::class, "showUserOverview_new"]);
|
||
|
|
Route::get("getUserRanking",[LeaderBordMasterContoller::class, "get_user_ranking"]);
|
||
|
|
Route::post("getUserGender",[LeaderBordMasterContoller::class, "get_user_gender"]);
|
||
|
|
Route::post("getUserGroupLevel",[LeaderBordMasterContoller::class, "get_user_group_level"]);
|
||
|
|
Route::post("filterUsers",[LeaderBordMasterContoller::class, "filter_users"]);
|
||
|
|
Route::post("get_user_data_filterUsers",[LeaderBordMasterContoller::class, "get_user_data"]);
|
||
|
|
Route::post("get_user_data_filterUsersNew",[LeaderBordMasterContoller::class, "get_user_data_new"]);
|
||
|
|
Route::post("get_user_data_filterUsers_home",[LeaderBordMasterContoller::class, "get_user_data_home"]);
|
||
|
|
Route::get("get_position",[LeaderBordMasterContoller::class,"ranking_position"]);
|
||
|
|
Route::get("get_user_position",[LeaderBordMasterContoller::class,"get_user_position"]);
|
||
|
|
Route::get("get_user_position_daily",[LeaderBordMasterContoller::class,"get_daily_user_position"]);
|
||
|
|
|
||
|
|
//*******************************************************UserOverviewController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************TestimonialController start here********************************************************
|
||
|
|
Route::get('getTestimonial', [TestimonialController::class, "get_Testimonial"]);
|
||
|
|
Route::post('storeTestimonial', [TestimonialController::class, "store_testimonial"]);
|
||
|
|
//Route::put('updateTestimonial', [TestimonialController::class, "update_testimonial"]);
|
||
|
|
//*******************************************************TestimonialController end here********************************************************
|
||
|
|
|
||
|
|
|
||
|
|
//*******************************************************ManageActivityController end here********************************************************
|
||
|
|
Route::get("getManageActivity",[ManageActivityController::class, "get_manage_activity"]);
|
||
|
|
Route::get("getManageActivitySchedule",[ManageActivityController::class, "get_manage_activity_schedule"]);
|
||
|
|
Route::get("getManageActivityScheduleUTC",[ManageActivityController::class, "get_manage_activity_schedule_utc"]);
|
||
|
|
Route::get("getManagePastSession",[ManageActivityController::class, "get_manage_past_session"]);
|
||
|
|
Route::post("addSessionStatus",[ManageActivityController::class,"add_session_status"]);
|
||
|
|
Route::get("getManageActivityById",[ManageActivityController::class, "get_manage_activity_id"]);
|
||
|
|
Route::get("getManageActivityScheduleById",[ManageActivityController::class, "get_schedule_id"]);
|
||
|
|
Route::get("getManagePastSessionById",[ManageActivityController::class, "get_manage_past_session_id"]);
|
||
|
|
|
||
|
|
Route::get("dummy_activity",[ManageActivityController::class, "dummy_activity"]);
|
||
|
|
//*******************************************************ManageActivityController end here********************************************************
|
||
|
|
//
|
||
|
|
//*******************************************************DietPlanController start here********************************************************
|
||
|
|
Route::post("getDietCategories",[DietPlanController::class, "get_diet_categories"]);
|
||
|
|
//*******************************************************DietPlanController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************ManageNotificationController start here********************************************************
|
||
|
|
Route::get("get_notification_count",[ManageNotificationController::class, "get_notification_count"]);
|
||
|
|
Route::post("update_read_status",[ManageNotificationController::class, "update_read_status"]);
|
||
|
|
Route::post("delete_notification",[ManageNotificationController::class, "delete_notification"]);
|
||
|
|
|
||
|
|
//*******************************************************ManageNotificationController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************Feedback start here********************************************************
|
||
|
|
Route::get("getFeedback",[ManageFeedbackController::class, "getData"]);
|
||
|
|
Route::post("updateFeedback",[ManageFeedbackController::class, "updateFeedback"]);
|
||
|
|
|
||
|
|
//*******************************************************Feedback end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************Rateus start here********************************************************
|
||
|
|
|
||
|
|
Route::get("getRateus",[RateUsController::class, "getData"]);
|
||
|
|
Route::post("updateRateUs",[RateUsController::class, "updateRateUs"]);
|
||
|
|
|
||
|
|
//*******************************************************Rateus end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************user start here********************************************************
|
||
|
|
|
||
|
|
Route::get("userSubscriptionData",[UserController::class, "userSubscriptionData"]);
|
||
|
|
Route::post("delete_user",[UserController::class, "delete_user"]);
|
||
|
|
|
||
|
|
//*******************************************************user end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************DailyStepCountCotroller start here********************************************************
|
||
|
|
Route::post("/step_count",[StepCountController::class,"store_step_count"]);
|
||
|
|
//*******************************************************DailyStepCountCotroller end here********************************************************
|
||
|
|
|
||
|
|
|
||
|
|
});
|
||
|
|
|
||
|
|
Route::get("reset_points",[UserOverviewController::class, "resetPoints"]);
|
||
|
|
|
||
|
|
//*******************************************************ViewDevicesOneSignalController start here********************************************************
|
||
|
|
Route::get("/fetchDevices",[ViewDevicesOneSignalController::class,"fetchDevices"]);
|
||
|
|
//*******************************************************ViewDevicesOneSignalController end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************CreateNotificationOneSignalController start here********************************************************
|
||
|
|
Route::post("/createNotification",[CreateNotificationOneSignalController::class,"createNotification"]);
|
||
|
|
//*******************************************************CreateNotificationOneSignalController end here********************************************************
|
||
|
|
|
||
|
|
Route::get("getQuiz",[QuizController::class, "getQuiz"]);
|
||
|
|
|
||
|
|
//*******************************************************Podcast start here********************************************************
|
||
|
|
Route::get("getPodcast",[ManagePodcastController::class, "getPodcast"]);
|
||
|
|
|
||
|
|
//*******************************************************Podcast end here********************************************************
|
||
|
|
|
||
|
|
//*******************************************************ManageNewsArticle start here********************************************************
|
||
|
|
Route::get("getNewsArticle",[NewsAndArticleController::class, "getData"]);
|
||
|
|
Route::post("search",[NewsAndArticleController::class,"search"]);
|
||
|
|
//*******************************************************ManageNewsArticle end here********************************************************
|
||
|
|
|
||
|
|
Route::post('/updateAppVersion', [GetAppVersionCotroller::class, 'updateAppVersion']);
|
||
|
|
|
||
|
|
// Route::get("delete_notif",[ManageNotificationController::class, "delete"]);
|
||
|
|
|
||
|
|
});
|