From 55c1a30f1094fc98d702b51d4cc8095ac39693b0 Mon Sep 17 00:00:00 2001 From: mohammad Date: Sun, 12 Jan 2025 12:59:10 +0300 Subject: [PATCH] change api generateInvitationCode --- lib/services/api/spaces_api.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }, );