fix: update API base URL references to new domain for consistency across the application
This commit is contained in:
parent
f46942e269
commit
75372ffab5
4
API.md
4
API.md
|
|
@ -5,7 +5,7 @@ This document describes the REST API endpoints for the Mixvideo Workflow service
|
||||||
|
|
||||||
## Base URL
|
## Base URL
|
||||||
```
|
```
|
||||||
https://mixvideo-workflow.bowong.cc/
|
https://api.bestaibest.ai/
|
||||||
```
|
```
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|
@ -953,4 +953,4 @@ API endpoints may be subject to rate limiting. Check response headers for rate l
|
||||||
- `user_request` - User requested refund
|
- `user_request` - User requested refund
|
||||||
- `technical_issue` - Technical problem occurred
|
- `technical_issue` - Technical problem occurred
|
||||||
- `duplicate` - Duplicate payment
|
- `duplicate` - Duplicate payment
|
||||||
- `fraudulent` - Fraudulent transaction
|
- `fraudulent` - Fraudulent transaction
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ const SuccessComponent: React.FC<SuccessComponentProps> = ({ task }) => {
|
||||||
webkit-playsinline="true"
|
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">
|
<div className="result-placeholder">
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,6 @@ export class H5Authorize extends Authorize {
|
||||||
if (hostname === 'localhost') {
|
if (hostname === 'localhost') {
|
||||||
baseUrl = `${protocol}//${hostname}:${port}`
|
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认证(登录、令牌刷新、撤销)
|
* - Google OAuth认证(登录、令牌刷新、撤销)
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* const sdk = new SdkServer('https://mixvideo-workflow.bowong.cc');
|
* const sdk = new SdkServer('https://api.bestaibest.ai');
|
||||||
* const templates = await sdk.getAllTemplates();
|
* const templates = await sdk.getAllTemplates();
|
||||||
*/
|
*/
|
||||||
export class SdkServer {
|
export class SdkServer {
|
||||||
|
|
@ -218,7 +218,7 @@ export class SdkServer {
|
||||||
* @param url API基础URL,默认为Mixvideo Workflow的生产环境
|
* @param url API基础URL,默认为Mixvideo Workflow的生产环境
|
||||||
* @param timeout 请求超时时间(毫秒),默认5分钟
|
* @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.baseUrl = url.endsWith('/') ? url.slice(0, -1) : url;
|
||||||
this.timeout = timeout;
|
this.timeout = timeout;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ export class AuthService {
|
||||||
if (hostname === 'localhost') {
|
if (hostname === 'localhost') {
|
||||||
baseUrl = `${protocol}//${hostname}:${port}`;
|
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;
|
window.location.href = redirectUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue