From cb4f2f9a1dca6a6e2ea2997125b981db525d129c Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 5 May 2017 16:40:54 +0200 Subject: [PATCH] propogate hostname correctly --- router/router.go | 6 +++--- server/hook.go | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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,