/
home
/
corsairdevelopme
/
public_html
/
admin-csrnow.corsair-development.com
/
routes__b301cdf
/
Upload File
HOME
<?php use App\Http\Controllers\Api\Auth\CSRDistributionController; use App\Http\Controllers\Api\AuthController; use App\Http\Controllers\Api\Auth\ProfileController; use App\Http\Controllers\Api\RoleController; use App\Http\Controllers\Api\Auth\NoticeManagementController; use App\Http\Controllers\Api\Auth\withdrawalController; use App\Models\WithdrawalBatch; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | 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! | */ Route::middleware(['api.auth.key'])->group(function () { Route::prefix('auth')->middleware('auth:sanctum')->group(function () { Route::prefix('profile')->group(function () { Route::get('/', [ProfileController::class, 'userData']); Route::post('/', [ProfileController::class, 'updateProfile']); Route::post('update-password', [ProfileController::class, 'updatePassword']); Route::post('check-password', [ProfileController::class, 'checkPassword']); Route::post('/update-user-google-auth-key', [ProfileController::class, 'updateUserGoogleAuthKey']); }); Route::prefix('user-company')->group(function () { Route::get('/', [ProfileController::class, 'userCompanyData']); Route::post('/', [ProfileController::class, 'updateUserCompanyData']); }); Route::post('csr-redemption/store', [CSRDistributionController::class, 'storeRedemption']); Route::post('csr-award/store', [CSRDistributionController::class, 'storeAwards']); Route::get('logout', [AuthController::class, 'logout']); Route::get('fetch-notice-data', [NoticeManagementController::class, 'fetchNoticeData']); Route::post('store-notice-confirmation-data', [NoticeManagementController::class, 'storeNoticeConformationData']); Route::get('get-withdrawal-data/{address}', [withdrawalController::class, 'getWithdrawalData']); }); Route::post('become-plastic-neutral/csr-redemption/store', [CSRDistributionController::class, 'storeRedemption']); Route::post('become-plastic-neutral/csr-award/store', [CSRDistributionController::class, 'storeAwards']); Route::post('cancel-redemption', [CSRDistributionController::class, 'cancelRedemption']); Route::post('reset-password-old', [AuthController::class, 'resetPasswordOld']); Route::post('login', [AuthController::class, 'login']); Route::get('mfp-setting', [AuthController::class, 'mfpSetting']); Route::post('direct-login', [AuthController::class, 'directLogin']); Route::get('roles', [RoleController::class, 'getRole']); Route::post('register', [AuthController::class, 'register']); Route::post('support/registration', [AuthController::class, 'supportRegister']); Route::post('email/verify', [AuthController::class, 'emailVerify']); Route::post('email/verify/update', [AuthController::class, 'emailVerifyUpdate']); Route::post('email/is-exists', [AuthController::class, 'isEmailExists']); Route::get('users/{id}', [ProfileController::class, 'getdataUserId']); Route::get('users-email/{email}', [ProfileController::class, 'getUserByEmail']); Route::post('password/generate', [ProfileController::class, 'passwordGenerate']); Route::get('search-user/{username}', [ProfileController::class, 'searchUser']); Route::get('roles/users/{role}', [RoleController::class, 'getUsersByRole']); Route::post('reset-password', [AuthController::class, 'resetPassword']); Route::post('member/update/{id}', [ProfileController::class, 'memberUpdate']); Route::post('member/update-by/{email}', [ProfileController::class, 'memberUpdateByEmail']); Route::post('member/update-user-status', [ProfileController::class, 'updateUserStatus']); Route::post('member/assign-role', [ProfileController::class, 'assignRoleToMember']); Route::get('token-price', [CSRDistributionController::class, 'tokenPrice']); Route::post('/reset-google-auth-Key-and-otp-from-admin', [ProfileController::class, 'resetGoogleAuthKeyAndOTPFromAdmin']); Route::post('member/set-authentication-value', [ProfileController::class, 'setAuthenticationValue']); });