mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
change api generateInvitationCode
This commit is contained in:
@ -67,7 +67,7 @@ class SpacesAPI {
|
|||||||
|
|
||||||
static Future<String> generateInvitationCode(
|
static Future<String> generateInvitationCode(
|
||||||
String unitId, String communityId) async {
|
String unitId, String communityId) async {
|
||||||
final response = await _httpService.get(
|
final response = await _httpService.post(
|
||||||
path: ApiEndpoints.invitationCode
|
path: ApiEndpoints.invitationCode
|
||||||
.replaceAll('{unitUuid}', unitId)
|
.replaceAll('{unitUuid}', unitId)
|
||||||
.replaceAll('{communityUuid}', communityId)
|
.replaceAll('{communityUuid}', communityId)
|
||||||
@ -107,7 +107,6 @@ class SpacesAPI {
|
|||||||
showServerMessage: true,
|
showServerMessage: true,
|
||||||
body: body,
|
body: body,
|
||||||
expectedResponseModel: (json) {
|
expectedResponseModel: (json) {
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user