Add Sync endpoint

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

View File

@ -50,4 +50,11 @@ export default class AppApi {
const json = await response.json() const json = await response.json()
return [response, json.data] 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]
}
} }