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:
Shahed Nasser
2024-05-16 09:02:35 +02:00
committed by GitHub
parent 9b1998b9b2
commit 22f30f54fd
2148 changed files with 8965 additions and 140283 deletions
+2 -1
View File
@@ -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}`)}`
}