chore: clean up
This commit is contained in:
parent
3248d4eff6
commit
94b77db294
@ -18,11 +18,7 @@ export const setupCoreServices = () => {
|
|||||||
engineManager: new EngineManager(),
|
engineManager: new EngineManager(),
|
||||||
toolManager: new ToolManager(),
|
toolManager: new ToolManager(),
|
||||||
api: {
|
api: {
|
||||||
...(window.electronAPI
|
...(window.electronAPI ?? (IS_TAURI ? tauriAPI : restAPI)),
|
||||||
? window.electronAPI
|
|
||||||
: IS_TAURI
|
|
||||||
? tauriAPI
|
|
||||||
: restAPI),
|
|
||||||
...appService,
|
...appService,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,6 @@ export const restAPI = {
|
|||||||
return {
|
return {
|
||||||
...acc,
|
...acc,
|
||||||
[proxy.route]: (...args: any) => {
|
[proxy.route]: (...args: any) => {
|
||||||
return Promise.resolve(undefined)
|
|
||||||
// For each route, define a function that sends a request to the API
|
// For each route, define a function that sends a request to the API
|
||||||
return fetch(
|
return fetch(
|
||||||
`${window.core?.api.baseApiUrl}/v1/${proxy.path}/${proxy.route}`,
|
`${window.core?.api.baseApiUrl}/v1/${proxy.path}/${proxy.route}`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user