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