From b104ab3ca1690f35d0674d3807681390e640e5c8 Mon Sep 17 00:00:00 2001 From: Piotr Orzechowski Date: Wed, 14 Feb 2018 05:46:00 +0100 Subject: Add option to enable or disable swagger endpoints (#3502) --- modules/context/context.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/context') diff --git a/modules/context/context.go b/modules/context/context.go index 311186e644..ea26184397 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -243,6 +243,7 @@ func Contexter() macaron.Handler { ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding ctx.Data["ShowFooterVersion"] = setting.ShowFooterVersion + ctx.Data["EnableSwaggerEndpoint"] = setting.API.EnableSwaggerEndpoint ctx.Data["EnableOpenIDSignIn"] = setting.Service.EnableOpenIDSignIn c.Map(ctx) -- cgit v1.2.3