From 592be967f6f5922ae5515273310472d0b99bcfe4 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Thu, 7 Jul 2022 18:21:41 +0300 Subject: [PATCH] [#15] Enable swagger UI Signed-off-by: Denis Kirillov --- handlers/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handlers/api.go b/handlers/api.go index 94f8dde..58c4f39 100644 --- a/handlers/api.go +++ b/handlers/api.go @@ -68,6 +68,8 @@ func New(prm *PrmAPI) *API { func (a *API) Configure(api *operations.NeofsRestGwAPI) http.Handler { api.ServeError = errors.ServeError + api.UseSwaggerUI() + api.AuthHandler = operations.AuthHandlerFunc(a.PostAuth) api.PutObjectHandler = operations.PutObjectHandlerFunc(a.PutObjects)