docs: update api-reference project for v2 (#7307)
* remove everything v1 and make v2 default * move main v2 rewrites to book * move rewrites to book + other fixes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { config } from "../config"
|
||||
import basePathUrl from "./base-path-url"
|
||||
|
||||
export default function getUrl(area: string, tagName?: string): string {
|
||||
return `${config.baseUrl}/api/${area}#${tagName}`
|
||||
return `${config.baseUrl}${basePathUrl(`/api/${area}#${tagName}`)}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user