change api generateInvitationCode

This commit is contained in:
mohammad
2025-01-12 12:59:10 +03:00
parent de9c51998c
commit 55c1a30f10

View File

@ -67,7 +67,7 @@ class SpacesAPI {
static Future<String> 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;
},
);