From 51a75b8e3d6fb9b2570f2243be35234794d16c86 Mon Sep 17 00:00:00 2001 From: Roman V Date: Wed, 20 May 2020 14:00:11 +0300 Subject: [PATCH] configuration of endpoint HTTP configuration --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 6e6ffb3..d3e1479 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,8 @@ import ( "github.com/gin-gonic/gin" ) +const HTTP_ENDPOINT = ":3000" + var router *gin.Engine func main() { @@ -25,7 +27,7 @@ func main() { initializeRoutes() // Start serving the application - router.Run() + router.Run(HTTP_ENDPOINT) } // Render one of HTML, JSON or CSV based on the 'Accept' header of the request