website: fix go-import

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-06-20 12:32:37 +02:00
parent 4e745a382f
commit 9b811dfc81
No known key found for this signature in database
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
import React from "react";
import Layout from "@theme/Layout";
import Head from "@docusaurus/Head";
import BrowserOnly from "@docusaurus/core/lib/client/exports/BrowserOnly";
function APIPage() {
return (
<Layout title="API">
<Head>
<meta
name="go-import"
content="goauthentik.io/api/v3 git https://github.com/goauthentik/client-go"
></meta>
</Head>
<BrowserOnly>
{() => {
window.location.pathname = "/developer-docs/api/";
}}
</BrowserOnly>
</Layout>
);
}
export default APIPage;