Files
Atay-Makhzan/routers/web/misc/swagger.go
T

15 lines
260 B
Go
Raw Normal View History

2017-10-21 16:05:50 +02:00
// Copyright 2017 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2017-10-21 16:05:50 +02:00
package misc
import (
2019-12-20 18:07:12 +01:00
"net/http"
"code.gitea.io/gitea/services/context"
2017-10-21 16:05:50 +02:00
)
func Swagger(ctx *context.Context) {
ctx.HTML(http.StatusOK, "swagger/openapi-viewer")
2017-10-21 16:05:50 +02:00
}