diff --git a/lib/services/api/spaces_api.dart b/lib/services/api/spaces_api.dart index aa33906..fbe066a 100644 --- a/lib/services/api/spaces_api.dart +++ b/lib/services/api/spaces_api.dart @@ -67,7 +67,7 @@ class SpacesAPI { static Future generateInvitationCode( String unitId, String communityId) async { - final response = await _httpService.get( + final response = await _httpService.post( path: ApiEndpoints.invitationCode .replaceAll('{unitUuid}', unitId) .replaceAll('{communityUuid}', communityId) @@ -107,7 +107,6 @@ class SpacesAPI { showServerMessage: true, body: body, expectedResponseModel: (json) { - return json; }, );