Skip to content

Commit

Permalink
Remove unused endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikelStuivenberg committed Nov 1, 2024
1 parent c70fbc3 commit 7080ffa
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lib/core/network/api_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -451,27 +451,6 @@ class APIService {
return response.statusCode == 200;
}

Future<bool> createChild(Map<String, dynamic> body) async {
final url =
Uri.https(_apiURL, 'givtservice/v1/childprofile/setup-child-profile');

final response = await client.post(
url,
body: jsonEncode(body),
headers: {
'Content-Type': 'application/json',
},
);

if (response.statusCode >= 300) {
throw GivtServerFailure(
statusCode: response.statusCode,
body: jsonDecode(response.body) as Map<String, dynamic>,
);
}
return response.statusCode == 200;
}

Future<bool> editChild(String childGUID, Map<String, dynamic> body) async {
final url = Uri.https(_apiURL, '/givtservice/v1/ChildProfile/$childGUID');

Expand Down

0 comments on commit 7080ffa

Please sign in to comment.