Add CartController, the selectCity method and its test.
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -32,20 +32,6 @@ class CityController extends Controller
|
||||
return new CityCollection(City::all());
|
||||
}
|
||||
|
||||
public function selectCity(Request $request)
|
||||
{
|
||||
$name = $request->input('name');
|
||||
$uuid = $request->input('uuid');
|
||||
|
||||
// Process the received name and uuid as required
|
||||
|
||||
// Return a response
|
||||
return response()->json([
|
||||
'message' => 'City selected successfully',
|
||||
'name' => $name,
|
||||
'uuid' => $uuid,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
|
||||
Reference in New Issue
Block a user