Skip to content

Commit 10439a1

Browse files
authored
Merge pull request #531 from spacedriveapp/fix/api-route-mismatches
Fix API route mismatches from OpenAPI migration
2 parents 5c85557 + 1b1e14f commit 10439a1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

interface/src/api/client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ export const api = {
16321632
}>;
16331633
},
16341634
startOpenAiOAuthBrowser: async (params: {model: string}) => {
1635-
const response = await fetch(`${getApiBase()}/providers/openai/oauth/browser/start`, {
1635+
const response = await fetch(`${getApiBase()}/providers/openai/browser-oauth/start`, {
16361636
method: "POST",
16371637
headers: { "Content-Type": "application/json" },
16381638
body: JSON.stringify({
@@ -1646,7 +1646,7 @@ export const api = {
16461646
},
16471647
openAiOAuthBrowserStatus: async (state: string) => {
16481648
const response = await fetch(
1649-
`${getApiBase()}/providers/openai/oauth/browser/status?state=${encodeURIComponent(state)}`,
1649+
`${getApiBase()}/providers/openai/browser-oauth/status?state=${encodeURIComponent(state)}`,
16501650
);
16511651
if (!response.ok) {
16521652
throw new Error(`API error: ${response.status}`);
@@ -1825,9 +1825,9 @@ export const api = {
18251825
},
18261826

18271827
// Raw config API
1828-
rawConfig: () => fetchJson<Types.RawConfigResponse>("/config/raw"),
1828+
rawConfig: () => fetchJson<Types.RawConfigResponse>("/settings/raw"),
18291829
updateRawConfig: async (content: string) => {
1830-
const response = await fetch(`${getApiBase()}/config/raw`, {
1830+
const response = await fetch(`${getApiBase()}/settings/raw`, {
18311831
method: "PUT",
18321832
headers: { "Content-Type": "application/json" },
18331833
body: JSON.stringify({ content }),

0 commit comments

Comments
 (0)