2022-10-03 11:53:44 -05: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 11:39:20 -05:00
|
|
|
|
2024-01-31 23:34:07 -05:00
|
|
|
"zotregistry.dev/zot/pkg/api/config"
|
|
|
|
"zotregistry.dev/zot/pkg/log"
|
2022-10-03 11:53:44 -05:00
|
|
|
)
|
|
|
|
|
2023-02-10 17:52:54 -05:00
|
|
|
func SetupSwaggerRoutes(conf *config.Config, router *mux.Router, authFunc mux.MiddlewareFunc,
|
|
|
|
log log.Logger,
|
2022-10-03 11:53:44 -05:00
|
|
|
) {
|
2022-11-08 03:38:16 -05:00
|
|
|
log.Warn().Msg("skipping enabling swagger because given zot binary " +
|
2022-10-03 11:53:44 -05:00
|
|
|
"doesn't include this feature, please build a binary that does so")
|
|
|
|
}
|