Browse Source
* Turn swagger.v1.json into template * Rename ENABLE_SWAGGER_ENDPOINT option to ENABLE_SWAGGERtags/v1.6.0-dev
Piotr Orzechowski
7 years ago
committed by
Lauris BH
14 changed files with 74 additions and 21 deletions
@ -1,2 +1,3 @@
|
||||
public/ |
||||
templates/swagger/v1_json.tmpl |
||||
themes/ |
||||
|
@ -0,0 +1,14 @@
|
||||
package routers |
||||
|
||||
import ( |
||||
"code.gitea.io/gitea/modules/base" |
||||
"code.gitea.io/gitea/modules/context" |
||||
) |
||||
|
||||
// tplSwaggerV1Json swagger v1 json template
|
||||
const tplSwaggerV1Json base.TplName = "swagger/v1_json" |
||||
|
||||
// SwaggerV1Json render swagger v1 json
|
||||
func SwaggerV1Json(ctx *context.Context) { |
||||
ctx.HTML(200, tplSwaggerV1Json) |
||||
} |
Loading…
Reference in new issue