1
0
Fork 0
mirror of synced 2024-06-17 09:55:09 +12:00

Add Sync endpoint

This commit is contained in:
Pedro Silva 2022-10-04 16:11:19 +01:00
parent 41ea9b9c2a
commit 8403d95abb

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]
}
}