Add Sync endpoint
This commit is contained in:
parent
c456e2ad3d
commit
2c2cd4c9f6
|
@ -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]
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue