芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/routes/api/api.php
['Clear cache successfully']]; return Helpers::onlysuccess($message); }); Route::get('get/basic/data', function() { $basic_settings = BasicSettingsProvider::get(); $user_kyc = SetupKyc::userKyc()->first(); $data =[ 'email_verification' => $basic_settings->email_verification, 'kyc_verification' => $basic_settings->kyc_verification, 'mobile_code' => getDialCode(), 'register_kyc_fields' =>$user_kyc, 'countries' =>get_all_countries() ]; $message = ['success'=>['Basic information fetch successfully']]; return Helpers::success($data,$message); }); Route::controller(AppSettingsController::class)->prefix("app-settings")->group(function(){ Route::get('/','appSettings'); Route::get('languages','languages'); }); Route::controller(AddMoneyController::class)->prefix("add-money")->group(function(){ Route::get('success/response/{gateway}','success')->name('api.payment.success'); Route::get("cancel/response/{gateway}",'cancel')->name('api.payment.cancel'); Route::get('/flutterwave/callback', 'flutterwaveCallback')->name('api.flutterwave.callback'); Route::get('razor/callback', 'razorCallback')->name('api.razor.callback'); Route::get('stripe/payment/success/{trx}','stripePaymentSuccess')->name('api.stripe.payment.success'); }); Route::prefix('user')->group(function(){ //email verify before register Route::prefix('register')->group(function(){ Route::post('check/exist',[AuthorizationController::class,'checkExist']); Route::post('send/otp', [AuthorizationController::class,'sendEmailOtp']); Route::post('verify/otp',[AuthorizationController::class,"verifyEmailOtp"]); Route::post('resend/otp',[AuthorizationController::class,"resendEmailOtp"]); }); Route::post('register',[LoginController::class,'register']); Route::post('login',[LoginController::class,'login']); //forget password for email Route::prefix('forget')->group(function(){ Route::post('password', [ForgotPasswordController::class,'sendCode']); Route::post('verify/otp', [ForgotPasswordController::class,'verifyCode']); Route::post('reset/password', [ForgotPasswordController::class,'resetPassword']); }); //account re-verifications Route::middleware(['auth.api'])->group(function(){ Route::post('send-code', [AuthorizationController::class,'sendMailCode']); Route::post('email-verify', [AuthorizationController::class,'mailVerify']); }); Route::middleware(['auth.api','verification.guard.api'])->group(function(){ Route::get('logout', [LoginController::class,'logout']); Route::get('kyc', [AuthorizationController::class,'showKycFrom']); Route::post('kyc/submit', [AuthorizationController::class,'kycSubmit']); Route::post('google/2fa/verify', [SecurityController::class,'verifyGoogle2Fa']); Route::middleware(['CheckStatusApiUser','user.google.two.factor.api'])->group(function () { Route::get('dashboard', [UserController::class,'home']); Route::get('profile', [UserController::class,'profile']); Route::post('profile/update', [UserController::class,'profileUpdate'])->middleware('app.mode.api'); Route::post('password/update', [UserController::class,'passwordUpdate'])->middleware('app.mode.api'); Route::post('delete/account', [UserController::class,'deleteAccount'])->middleware('app.mode.api'); Route::get('notifications', [UserController::class,'notifications']); //virtual card flutterwave Route::middleware('virtual_card_method:flutterwave')->group(function(){ Route::controller(VirtualCardController::class)->prefix('my-card')->group(function(){ Route::get('/','index'); Route::get('charges','charges'); Route::post('create','cardBuy'); Route::post('fund','cardFundConfirm'); Route::get('details','cardDetails'); Route::get('transaction','cardTransaction'); Route::post('block','cardBlock'); Route::post('unblock','cardUnBlock'); }); }); //virtual card sudo Route::middleware('virtual_card_method:sudo')->group(function(){ Route::controller(SudoVirtualCardController::class)->prefix('my-card/sudo')->group(function(){ Route::get('/','index'); Route::get('charges','charges'); Route::get('details','cardDetails'); Route::post('create','cardBuy'); Route::get('details','cardDetails'); Route::get('transaction','cardTransaction'); Route::post('block','cardBlock'); Route::post('unblock','cardUnBlock'); Route::post('make-remove/default','makeDefaultOrRemove'); }); }); //add money Route::controller(AddMoneyController::class)->prefix("add-money")->group(function(){ Route::get('/information','addMoneyInformation'); Route::post('submit-data','submitData'); //manual gateway Route::post('manual/payment/confirmed','manualPaymentConfirmedApi')->name('api.manual.payment.confirmed'); }); //Receive Money Route::controller(ReceiveMoneyController::class)->prefix('receive-money')->group(function(){ Route::get('/','index'); }); //Send Money Route::controller(SendMoneyController::class)->prefix('send-money')->group(function(){ Route::get('info','sendMoneyInfo'); Route::post('exist','checkUser'); Route::post('qr/scan','qrScan'); Route::post('confirmed','confirmedSendMoney'); }); //Withdraw Money Route::controller(MoneyOutController::class)->prefix('withdraw')->group(function(){ Route::get('info','moneyOutInfo'); Route::post('insert','moneyOutInsert'); Route::post('manual/confirmed','moneyOutConfirmed')->name('api.withdraw.manual.confirmed'); Route::post('automatic/confirmed','confirmMoneyOutAutomatic')->name('api.withdraw.automatic.confirmed'); //get flutterWave banks Route::get('get/flutterwave/banks','getBanks'); }); //Make Payment Route::controller(MakePaymentController::class)->prefix('make-payment')->group(function(){ Route::get('info','makePaymentInfo'); Route::post('check/merchant','checkMerchant'); Route::post('merchants/scan','qrScan'); Route::post('confirmed','confirmedPayment'); }); //Bill Pay Route::controller(BillPayController::class)->prefix('bill-pay')->group(function(){ Route::get('info','billPayInfo'); Route::post('confirmed','billPayConfirmed'); }); //mobile top up Route::controller(MobileTopupController::class)->prefix('mobile-topup')->group(function(){ Route::get('info','topUpInfo'); Route::post('confirmed','topUpConfirmed'); }); //Saved Recipient Route::controller(RecipientController::class)->prefix('recipient')->group(function(){ Route::get('list','recipientList'); Route::get('save/info','saveRecipientInfo'); Route::get('dynamic/fields','dynamicFields'); Route::post('check/user','checkUser'); Route::post('store','storeRecipient'); Route::get('edit','editRecipient'); Route::post('update','updateRecipient'); Route::post('delete','deleteRecipient'); }); //Remitance Route::controller(RemittanceController::class)->prefix('remittance')->group(function(){ Route::get('info','remittanceInfo'); Route::post('confirmed','confirmed'); //for filters Route::post('get/recipient','getRecipient'); // Route::post('get/recipient/transaction/type','getRecipientByTransType'); }); //transactions Route::controller(TransactionController::class)->prefix("transactions")->group(function(){ Route::get('/{slug?}','index'); }); //google-2fa Route::controller(SecurityController::class)->prefix("security")->group(function(){ Route::get('google/2fa/status','google2FA'); }); }); }); });