fix: update API base URL references to new domain for consistency across the application
This commit is contained in:
parent
f46942e269
commit
75372ffab5
2
API.md
2
API.md
|
|
@ -5,7 +5,7 @@ This document describes the REST API endpoints for the Mixvideo Workflow service
|
|||
|
||||
## Base URL
|
||||
```
|
||||
https://mixvideo-workflow.bowong.cc/
|
||||
https://api.bestaibest.ai/
|
||||
```
|
||||
|
||||
## Authentication
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ const SuccessComponent: React.FC<SuccessComponentProps> = ({ task }) => {
|
|||
webkit-playsinline="true"
|
||||
/>
|
||||
) : (
|
||||
<img className="result-image" src={`https://mixvideo-workflow.bowong.cc/cdn/${encodeURIComponent(task.outputUrl)}`} alt="Generated result" />
|
||||
<img className="result-image" src={`https://api.bestaibest.ai/cdn/${encodeURIComponent(task.outputUrl)}`} alt="Generated result" />
|
||||
)
|
||||
) : (
|
||||
<div className="result-placeholder">
|
||||
|
|
|
|||
|
|
@ -42,6 +42,6 @@ export class H5Authorize extends Authorize {
|
|||
if (hostname === 'localhost') {
|
||||
baseUrl = `${protocol}//${hostname}:${port}`
|
||||
}
|
||||
window.location.href = `https://mixvideo-workflow.bowong.cc/auth/google/authorize?redirect_url=${baseUrl}`
|
||||
window.location.href = `https://api.bestaibest.ai/auth/google/authorize?redirect_url=${baseUrl}`
|
||||
}
|
||||
}
|
||||
|
|
@ -206,7 +206,7 @@ export interface TemplateSyncStatus {
|
|||
* - Google OAuth认证(登录、令牌刷新、撤销)
|
||||
*
|
||||
* @example
|
||||
* const sdk = new SdkServer('https://mixvideo-workflow.bowong.cc');
|
||||
* const sdk = new SdkServer('https://api.bestaibest.ai');
|
||||
* const templates = await sdk.getAllTemplates();
|
||||
*/
|
||||
export class SdkServer {
|
||||
|
|
@ -218,7 +218,7 @@ export class SdkServer {
|
|||
* @param url API基础URL,默认为Mixvideo Workflow的生产环境
|
||||
* @param timeout 请求超时时间(毫秒),默认5分钟
|
||||
*/
|
||||
constructor(url: string = `https://mixvideo-workflow.bowong.cc`, timeout: number = 5 * 60 * 1000) {
|
||||
constructor(url: string = `https://api.bestaibest.ai`, timeout: number = 5 * 60 * 1000) {
|
||||
this.baseUrl = url.endsWith('/') ? url.slice(0, -1) : url;
|
||||
this.timeout = timeout;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export class AuthService {
|
|||
if (hostname === 'localhost') {
|
||||
baseUrl = `${protocol}//${hostname}:${port}`;
|
||||
}
|
||||
const redirectUrl = `https://mixvideo-workflow.bowong.cc/auth/google/authorize?redirect_url=${baseUrl}${redirectPath || ''}`;
|
||||
const redirectUrl = `https://api.bestaibest.ai/auth/google/authorize?redirect_url=${baseUrl}${redirectPath || ''}`;
|
||||
window.location.href = redirectUrl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue