mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
change api generateInvitationCode
This commit is contained in:
@ -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;
|
||||
},
|
||||
);
|
||||
|
Reference in New Issue
Block a user