<!-- .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: Igor Ilic <igorilic03@gmail.com>
12 lines
384 B
TypeScript
12 lines
384 B
TypeScript
import { fetch } from '@/utils';
|
|
|
|
export default function getExplorationGraphUrl(/* dataset: { name: string } */) {
|
|
return fetch('/v1/visualize')
|
|
.then(async (response) => {
|
|
if (response.status !== 200) {
|
|
throw new Error((await response.text()).replaceAll("\"", ""));
|
|
}
|
|
return response;
|
|
})
|
|
.then((response) => response.text());
|
|
}
|