Add Sync endpoint
This commit is contained in:
parent
41ea9b9c2a
commit
8403d95abb
|
@ -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