Unified · Split
| @@ -514,7 +514,7 @@ export default function AddGoogleDiscoverySource(props: { · 513 unmodified lines | ||
| 514 | 514 | discoveryUrl: discoveryUrl.trim(), |
| 515 | 515 | clientId: clientId.trim(), |
| 516 | 516 | clientSecretSecretId, |
| 517 | − redirectUrl: `${window.location.origin}/v1/google-discovery/oauth/callback`, | |
| 517 | + redirectUrl: `${window.location.origin}/api/google-discovery/oauth/callback`, | |
| 518 | 518 | scopes: probe.scopes, |
| 519 | 519 | }, |
| 520 | 520 | }); |
| @@ -248,7 +248,7 @@ export default function AddMcpSource(props: { · 247 unmodified lines | ||
| 248 | 248 | const handleOAuth = useCallback(async () => { |
| 249 | 249 | dispatch({ type: "oauth-start" }); |
| 250 | 250 | try { |
| 251 | − const redirectUrl = `${window.location.origin}/v1/mcp/oauth/callback`; | |
| 251 | + const redirectUrl = `${window.location.origin}/api/mcp/oauth/callback`; | |
| 252 | 252 | const result = await doStartOAuth({ |
| 253 | 253 | path: { scopeId }, |
| 254 | 254 | payload: { endpoint: state.url.trim(), redirectUrl }, |