選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

swagger_json.go 324B

1234567891011121314
  1. package routers
  2. import (
  3. "code.gitea.io/gitea/modules/base"
  4. "code.gitea.io/gitea/modules/context"
  5. )
  6. // tplSwaggerV1Json swagger v1 json template
  7. const tplSwaggerV1Json base.TplName = "swagger/v1_json"
  8. // SwaggerV1Json render swagger v1 json
  9. func SwaggerV1Json(ctx *context.Context) {
  10. ctx.HTML(200, tplSwaggerV1Json)
  11. }