Fix returned format of body types endpoint #791
This commit is contained in:
parent
78a43ae85c
commit
4dd8efd95a
1 changed files with 12 additions and 3 deletions
|
|
@ -318,9 +318,18 @@ class InsuranceController extends ApiController
|
||||||
|
|
||||||
// TODO: if this changes often, make an entity and make it manageable on CRM
|
// TODO: if this changes often, make an entity and make it manageable on CRM
|
||||||
$body_types = [
|
$body_types = [
|
||||||
'SEDAN' => 'Sedan',
|
[
|
||||||
'SUV' => 'SUV',
|
'id' => 'SEDAN',
|
||||||
'TRUCK' => 'Truck',
|
'name' => 'Sedan',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'SUV',
|
||||||
|
'name' => 'SUV',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'TRUCK',
|
||||||
|
'name' => 'Truck',
|
||||||
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
return new ApiResponse(true, '', [
|
return new ApiResponse(true, '', [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue