Browse Source

final touches on server side

pull/2/head
ojizero 3 years ago
parent
commit
fd85062978

+ 2
- 2
ServerSide/app/Http/Controllers/TransactionsController.php View File

@@ -43,13 +43,13 @@ class TransactionsController extends Controller {

return response()->json([
'_status' => 403,
'_description' => ($customer) ? ('insufficient credit') : ('invalid card')
'_description' => ($customer) ? ('not enough cash') : ('invalid card')
]);
}

return response()->json([
'_status' => 403,
'_description' => 'invalid vehicle'
'_description' => 'compromised car'
]);
}


+ 1
- 1
ServerSide/app/Http/Controllers/VehicleController.php View File

@@ -75,7 +75,7 @@ class VehicleController extends Controller {
$logged_in = Auth::guard('web')->user();
if ($logged_in) {
return response()->json([
'status' => $logged_in->maintenance
'status' => ($logged_in->maintenance == 1)
]);
}


Loading…
Cancel
Save