Update OpenAPI, amend TS issues

This commit is contained in:
2025-07-17 13:11:20 +02:00
parent 520f59a0ca
commit 9c743ed514
45 changed files with 197 additions and 201 deletions

View File

@@ -139,16 +139,12 @@ router.beforeEach(async (to) => {
app.use(router);
app.use(ToastService)
let apiUrl: string | undefined
if (!getApiUrl()) {
apiUrl = `http://${getApiUrl()}`
} else {
apiUrl = "http://localhost:7070"
}
const devProxy = import.meta.env.DEV && !import.meta.env.VITE_API_HOST && !import.meta.env.VITE_API_PORT
? ''
: `http://${getApiUrl()}`
const axiosInstance = axios.create({
baseURL: apiUrl,
baseURL: devProxy,
headers: {
'Content-Type': 'application/json'
}
@@ -173,7 +169,6 @@ axiosInstance.interceptors.response.use(
}
)
console.log(apiUrl)
const deckService: DeckService = new DeckService(undefined, undefined, axiosInstance)
const cardService: CardService = new CardService(undefined, undefined, axiosInstance)
const setService: SetService = new SetService(undefined, undefined, axiosInstance)