mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-31 08:37:35 -04:00
15 lines
324 B
Go
15 lines
324 B
Go
|
package routers
|
||
|
|
||
|
import (
|
||
|
"code.gitea.io/gitea/modules/base"
|
||
|
"code.gitea.io/gitea/modules/context"
|
||
|
)
|
||
|
|
||
|
// tplSwaggerV1Json swagger v1 json template
|
||
|
const tplSwaggerV1Json base.TplName = "swagger/v1_json"
|
||
|
|
||
|
// SwaggerV1Json render swagger v1 json
|
||
|
func SwaggerV1Json(ctx *context.Context) {
|
||
|
ctx.HTML(200, tplSwaggerV1Json)
|
||
|
}
|