Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

swagger_json.go 487B

123456789101112131415161718
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package routers
  5. import (
  6. "code.gitea.io/gitea/modules/base"
  7. "code.gitea.io/gitea/modules/context"
  8. )
  9. // tplSwaggerV1Json swagger v1 json template
  10. const tplSwaggerV1Json base.TplName = "swagger/v1_json"
  11. // SwaggerV1Json render swagger v1 json
  12. func SwaggerV1Json(ctx *context.Context) {
  13. ctx.HTML(200, tplSwaggerV1Json)
  14. }