Add Sync endpoint

This commit is contained in:
Pedro Silva 2022-10-04 16:11:19 +01:00
parent c456e2ad3d
commit 2c2cd4c9f6
1 changed files with 7 additions and 0 deletions

View File

@ -50,4 +50,11 @@ export default class AppApi {
const json = await response.json()
return [response, json.data]
}
async sync(appId: string): Promise<[Response, any]> {
const response = await this.api.post(`/applications/${appId}/sync`)
const json = await response.json()
return [response, json]
}
}