tianji/packages/client-sdk/src/config.ts

6 lines
168 B
TypeScript
Raw Normal View History

2024-04-28 14:58:58 +00:00
import { OpenAPI } from './open/client';
export function initOpenapiSDK(baseUrl: string) {
OpenAPI.BASE = baseUrl.endsWith('/open') ? baseUrl : `${baseUrl}/open`;
}