From 6fad16581814ee993f087aa81eba56bde76a4916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Hatland?= Date: Mon, 9 Oct 2023 11:13:06 +0200 Subject: [PATCH] move HTTP GET /health outside v1 --- server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index 504b4ee..bc17517 100644 --- a/server.go +++ b/server.go @@ -17,6 +17,8 @@ func main() { func apiRoutes(router *gin.Engine) { + router.GET("/health/", api.Health) + // Group API endpoints in /v1 v1 := router.Group("/v1") @@ -30,7 +32,6 @@ func apiRoutes(router *gin.Engine) { v1.GET("/aksjebok/:orgnr/balanse/:id", api.GetNumberOfSharesForOwnerOfAForetak) v1.POST("/aksjebok/:orgnr/aksjeeier", api.GetOwnersForForetak) - v1.GET("/health/", api.Health) } func serveApplication(router *gin.Engine) {