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.

18 lines
487 B

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