You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
324 B

  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. }