summaryrefslogtreecommitdiffstats
path: root/routers/web/misc/swagger-forgejo.go
blob: e3aff02c5ff2989d9bb57d998aaf2815ca20f530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2017 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package misc

import (
	"net/http"

	"code.gitea.io/gitea/modules/base"
	"code.gitea.io/gitea/services/context"
)

// tplSwagger swagger page template
const tplForgejoSwagger base.TplName = "swagger/forgejo-ui"

func SwaggerForgejo(ctx *context.Context) {
	ctx.Data["APIVersion"] = "v1"
	ctx.HTML(http.StatusOK, tplForgejoSwagger)
}