axiosInstance replaced with apiCall

This commit is contained in:
Jan Prochazka
2021-12-22 10:16:44 +01:00
parent 148af24b2c
commit f9c54cdce2
55 changed files with 257 additions and 328 deletions

View File

@@ -6,6 +6,7 @@
import { onMount } from 'svelte';
import LoadingInfo from '../elements/LoadingInfo.svelte';
import Markdown from '../elements/Markdown.svelte';
import { apiCall } from '../utility/api';
import axiosInstance from '../utility/axiosInstance';
@@ -14,8 +15,8 @@
const handleLoad = async () => {
isLoading = true;
const resp = await axiosInstance().get('config/changelog');
text = resp.data;
const resp = await apiCall('config/changelog');
text = resp;
isLoading = false;
};