summaryrefslogtreecommitdiffstats
path: root/templates/swagger/ui.tmpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/swagger/ui.tmpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl
new file mode 100644
index 0000000..87b0cfb
--- /dev/null
+++ b/templates/swagger/ui.tmpl
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>Forgejo API</title>
+ <link href="{{AssetUrlPrefix}}/css/swagger.css?v={{AssetVersion}}" rel="stylesheet">
+ </head>
+ <body>
+ <a class="swagger-back-link" href="{{AppSubUrl}}/">{{svg "octicon-reply"}}{{ctx.Locale.Tr "return_to_forgejo"}}</a>
+ <div id="swagger-ui" data-source="{{AppSubUrl}}/swagger.{{.APIJSONVersion}}.json"></div>
+ <script src="{{AssetUrlPrefix}}/js/swagger.js?v={{AssetVersion}}"></script>
+ </body>
+</html>