From 52c835053007c5991903e778b5dbf64a25aea0a4 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Wed, 18 Mar 2020 14:33:39 -0500 Subject: serve swagger when present register the swagger endpoint and add some error handling for when the swagger file does not exist Signed-off-by: Brent Baude --- pkg/api/server/server.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/api/server/server.go') diff --git a/pkg/api/server/server.go b/pkg/api/server/server.go index 8496cd11c..3d4974535 100644 --- a/pkg/api/server/server.go +++ b/pkg/api/server/server.go @@ -109,6 +109,7 @@ func newServer(runtime *libpod.Runtime, duration time.Duration, listener *net.Li server.registerPingHandlers, server.registerPluginsHandlers, server.registerPodsHandlers, + server.RegisterSwaggerHandlers, server.registerSwarmHandlers, server.registerSystemHandlers, server.registerVersionHandlers, -- cgit v1.2.3-54-g00ecf