<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Co-authored-by: Daulet Amirkhanov <damirkhanov01@gmail.com>
11 lines
289 B
TypeScript
11 lines
289 B
TypeScript
import { fetch } from "@/utils";
|
|
|
|
export default function syncData(datasetId?: string) {
|
|
return fetch("/v1/sync", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
...(datasetId ? { body: JSON.stringify({ datasetId }) } : { body: "{}" }),
|
|
});
|
|
}
|