zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/pkg/debug/swagger/swagger_disabled.go (about)

     1  //go:build !debug
     2  // +build !debug
     3  
     4  // @contact.name API Support
     5  // @contact.url http://www.swagger.io/support
     6  // @contact.email support@swagger.io
     7  
     8  package debug
     9  
    10  import (
    11  	"github.com/gorilla/mux"
    12  
    13  	"zotregistry.io/zot/pkg/api/config"
    14  	"zotregistry.io/zot/pkg/log"
    15  )
    16  
    17  func SetupSwaggerRoutes(conf *config.Config, router *mux.Router, authFunc mux.MiddlewareFunc,
    18  	log log.Logger,
    19  ) {
    20  	log.Warn().Msg("skipping enabling swagger because given zot binary " +
    21  		"doesn't include this feature, please build a binary that does so")
    22  }