Commit 787f203
committed
refactor: Simplifies API base URL handling
Removes the need to specify the base URL for API calls within the `ChatService` class by utilizing Vite's proxy configuration.
This change streamlines the code and centralizes the base URL configuration in `vite.config.ts`.
It also adds a proxy for the `/slots` endpoint.1 parent e23d39d commit 787f203
File tree
3 files changed
+3
-12
lines changed- tools/server/webui
- src/lib/services
3 files changed
+3
-12
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 10 | | |
20 | 11 | | |
21 | 12 | | |
| |||
97 | 88 | | |
98 | 89 | | |
99 | 90 | | |
100 | | - | |
| 91 | + | |
101 | 92 | | |
102 | 93 | | |
103 | 94 | | |
| |||
427 | 418 | | |
428 | 419 | | |
429 | 420 | | |
430 | | - | |
| 421 | + | |
431 | 422 | | |
432 | 423 | | |
433 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
0 commit comments