diff --git a/router/router.go b/router/router.go index 3c5d2f62..761c0dee 100644 --- a/router/router.go +++ b/router/router.go @@ -97,9 +97,9 @@ func Load(middleware ...gin.HandlerFunc) http.Handler { // requires push permissions repo.GET("/registry", session.MustPush, server.GetRegistryList) repo.POST("/registry", session.MustPush, server.PostRegistry) - repo.GET("/registry/:address", session.MustPush, server.GetRegistry) - repo.PATCH("/registry/:address", session.MustPush, server.PatchRegistry) - repo.DELETE("/registry/:address", session.MustPush, server.DeleteRegistry) + repo.GET("/registry/:registry", session.MustPush, server.GetRegistry) + repo.PATCH("/registry/:registry", session.MustPush, server.PatchRegistry) + repo.DELETE("/registry/:registry", session.MustPush, server.DeleteRegistry) // requires push permissions repo.PATCH("", session.MustPush, server.PatchRepo) diff --git a/server/hook.go b/server/hook.go index 3bc29158..d065a742 100644 --- a/server/hook.go +++ b/server/hook.go @@ -448,6 +448,7 @@ func (b *builder) Build() ([]*buildItem, error) { var registries []compiler.Registry for _, reg := range b.Regs { registries = append(registries, compiler.Registry{ + Hostname: reg.Address, Username: reg.Username, Password: reg.Password, Email: reg.Email,