mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-06 03:45:20 +02:00
20 lines
423 B
Go
20 lines
423 B
Go
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package misc
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"code.gitea.io/gitea/modules/base"
|
||
|
"code.gitea.io/gitea/modules/context"
|
||
|
)
|
||
|
|
||
|
// tplSwagger swagger page template
|
||
|
const tplForgejoSwagger base.TplName = "swagger/forgejo-ui"
|
||
|
|
||
|
func SwaggerForgejo(ctx *context.Context) {
|
||
|
ctx.Data["APIVersion"] = "v1"
|
||
|
ctx.HTML(http.StatusOK, tplForgejoSwagger)
|
||
|
}
|