7 lines
158 B
TypeScript
7 lines
158 B
TypeScript
export const resolveFullPath = (endpoint: string, path: string) => {
|
|
if (!path.startsWith('/')) {
|
|
path = `/${path}`
|
|
}
|
|
return `${endpoint}${path}`
|
|
}
|