mirror of
https://github.com/kubesphere/website.git
synced 2025-12-25 15:32:54 +00:00
17 lines
647 B
JavaScript
Executable File
17 lines
647 B
JavaScript
Executable File
export default async (request, context) => {
|
|
const url = new URL(request.url)
|
|
|
|
// Look for the query parameter, and return if we don't find it
|
|
if (url.searchParams.get('go-get') == '1') {
|
|
return new Response(`
|
|
<html>
|
|
<head>
|
|
<meta name="go-import" content="kubesphere.io${url.pathname} git https://github.com/kubesphere${url.pathname}">
|
|
<meta name="go-source" content="kubesphere.io${url.pathname} _ https://github.com/kubesphere${url.pathname} https://github.com/kubesphere${url.pathname}/tree/master/{/dir} https://github.com/kubesphere${url.pathname}/blob/master/{/dir}/{/file}#L{/line}">
|
|
</head>
|
|
</html>`)
|
|
}
|
|
|
|
return
|
|
}
|