added tahesab options
This commit is contained in:
+5
-7
@@ -151,6 +151,10 @@ Route::middleware('auth:user')->group(function (){
|
||||
Route::post('account/sts', [BankAccountController::class, 'changeSts']);
|
||||
|
||||
Route::post('wallet/tahesab', [TahesabController::class, 'wallet']);
|
||||
Route::post('tahesab/table', [TahesabController::class, 'table']);
|
||||
Route::get('tahesab/{id}', [TahesabController::class, 'show']);
|
||||
Route::post('tahesab/{id}/retry', [TahesabController::class, 'retrySanad']);
|
||||
Route::post('customer/{id}/tahesab/register', [TahesabController::class, 'registerCustomer']);
|
||||
|
||||
Route::get('test', function () {
|
||||
$data = [
|
||||
@@ -159,13 +163,7 @@ Route::middleware('auth:user')->group(function (){
|
||||
"note" => "test",
|
||||
"direction" => "0"
|
||||
];
|
||||
$tahesab = new TahesabController();
|
||||
try {
|
||||
$tahesab->wallet($data);
|
||||
|
||||
}catch (Exception $e) {
|
||||
dd($e->getMessage());
|
||||
}
|
||||
app(TahesabController::class)->wallet($data);
|
||||
return "OK";
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user