Files
core/packages/api-client/utils/path.ts
2022-12-20 21:26:21 +08:00

7 lines
158 B
TypeScript

export const resolveFullPath = (endpoint: string, path: string) => {
if (!path.startsWith('/')) {
path = `/${path}`
}
return `${endpoint}${path}`
}