* remove everything v1 and make v2 default * move main v2 rewrites to book * move rewrites to book + other fixes
7 lines
223 B
TypeScript
7 lines
223 B
TypeScript
import { config } from "../config"
|
|
import basePathUrl from "./base-path-url"
|
|
|
|
export default function getUrl(area: string, tagName?: string): string {
|
|
return `${config.baseUrl}${basePathUrl(`/api/${area}#${tagName}`)}`
|
|
}
|