Skip to content

Commit

Permalink
move health endpoint to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Øyvind Hatland committed Oct 9, 2023
1 parent 6fad165 commit f8c16ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ func main() {

func apiRoutes(router *gin.Engine) {

router.GET("/health/", api.Health)

// Group API endpoints in /v1
v1 := router.Group("/v1")

Expand All @@ -32,6 +30,7 @@ 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) {
Expand Down

0 comments on commit f8c16ed

Please sign in to comment.