mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 15:21:04 +00:00
b9f3d3a97d
- "Gitea" is automatically being determined in Swagger and cannot be overridden, therefor we override it after `swagger generate spec` is run. - Resolves https://codeberg.org/forgejo/forgejo/issues/226 (cherry picked from commit0b45380765
) [BRANDING] Change Swagger title to Forgejo API (cherry picked from commit79f6a70b53
) (cherry picked from commit6cd47afe33
) (cherry picked from commita7ae2e4c09
) (cherry picked from commit59f837e466
) (cherry picked from commit9fefe3dc6a
) (cherry picked from commit1e88465eed
) (cherry picked from commit5ba2f6e3a1
) (cherry picked from commitdbdd396315
)
13 lines
498 B
Handlebars
13 lines
498 B
Handlebars
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<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"}}{{.locale.Tr "return_to_gitea"}}</a>
|
|
<div id="swagger-ui" data-source="{{AppSubUrl}}/swagger.{{.APIJSONVersion}}.json"></div>
|
|
<script src="{{AssetUrlPrefix}}/js/swagger.js?v={{AssetVersion}}"></script>
|
|
</body>
|
|
</html>
|