2022-10-03 19:53:44 +03:00
|
|
|
//go:build !debug
|
|
|
|
// +build !debug
|
|
|
|
|
|
|
|
// @contact.name API Support
|
|
|
|
// @contact.url http://www.swagger.io/support
|
|
|
|
// @contact.email support@swagger.io
|
|
|
|
|
|
|
|
package debug
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gorilla/mux"
|
2022-10-20 19:39:20 +03:00
|
|
|
|
2024-02-01 06:34:07 +02:00
|
|
|
"zotregistry.dev/zot/pkg/api/config"
|
|
|
|
"zotregistry.dev/zot/pkg/log"
|
2022-10-03 19:53:44 +03:00
|
|
|
)
|
|
|
|
|
2023-02-11 00:52:54 +02:00
|
|
|
func SetupSwaggerRoutes(conf *config.Config, router *mux.Router, authFunc mux.MiddlewareFunc,
|
|
|
|
log log.Logger,
|
2022-10-03 19:53:44 +03:00
|
|
|
) {
|
2022-11-08 00:38:16 -08:00
|
|
|
log.Warn().Msg("skipping enabling swagger because given zot binary " +
|
2022-10-03 19:53:44 +03:00
|
|
|
"doesn't include this feature, please build a binary that does so")
|
|
|
|
}
|