diff options
Diffstat (limited to 'routers/swagger_json.go')
-rw-r--r-- | routers/swagger_json.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/routers/swagger_json.go b/routers/swagger_json.go new file mode 100644 index 0000000000..896f1afa2a --- /dev/null +++ b/routers/swagger_json.go @@ -0,0 +1,14 @@ +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) +} |