mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-04 19:00:41 +02:00
1412009d0a
Backport * #37233 * #37272 --------- Co-authored-by: silverwind <me@silverwind.io>
17 lines
747 B
Go HTML Template
17 lines
747 B
Go HTML Template
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Gitea API</title>
|
|
<link rel="stylesheet" href="{{ctx.CurrentWebTheme.PublicAssetURI}}">
|
|
{{/* HINT: SWAGGER-CSS-IMPORT: import swagger styles ahead to avoid UI flicker (e.g.: the swagger-back-link element) */}}
|
|
<link rel="stylesheet" href="{{AssetURI "css/swagger.css"}}">
|
|
</head>
|
|
<body>
|
|
{{/* TODO: add Help & Glossary to help users understand the API, and explain some concepts like "Owner" */}}
|
|
<a class="swagger-back-link" href="{{AppSubUrl}}/">{{svg "octicon-reply"}}{{ctx.Locale.Tr "return_to_gitea"}}</a>
|
|
<div id="swagger-ui" data-source="{{AppSubUrl}}/swagger.v1.json"></div>
|
|
<footer class="page-footer"></footer>
|
|
{{ScriptImport "js/swagger.js" "module"}}
|
|
</body>
|
|
</html>
|