2023-07-07 11:27:10 -05:00
|
|
|
//go:build !apikey
|
|
|
|
// +build !apikey
|
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gorilla/mux"
|
|
|
|
"github.com/gorilla/sessions"
|
|
|
|
|
|
|
|
"zotregistry.io/zot/pkg/api/config"
|
|
|
|
"zotregistry.io/zot/pkg/log"
|
2023-07-18 12:27:26 -05:00
|
|
|
mTypes "zotregistry.io/zot/pkg/meta/types"
|
2023-07-07 11:27:10 -05:00
|
|
|
)
|
|
|
|
|
2023-07-18 12:27:26 -05:00
|
|
|
func SetupAPIKeyRoutes(config *config.Config, router *mux.Router, metaDB mTypes.MetaDB,
|
2023-07-07 11:27:10 -05:00
|
|
|
cookieStore sessions.Store, log log.Logger,
|
|
|
|
) {
|
|
|
|
log.Warn().Msg("skipping setting up API key routes because given zot binary doesn't include this feature," +
|
|
|
|
"please build a binary that does so")
|
|
|
|
}
|