From c5f473e7c16c0e050fcd511f9a05890561c1fdfc Mon Sep 17 00:00:00 2001 From: ciCCic Date: Thu, 16 Apr 2020 20:15:22 +0200 Subject: [PATCH] small clean up --- api/nrcnewsapi/src/main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/nrcnewsapi/src/main.go b/api/nrcnewsapi/src/main.go index e039ef1..51fd79c 100644 --- a/api/nrcnewsapi/src/main.go +++ b/api/nrcnewsapi/src/main.go @@ -12,12 +12,12 @@ func main() { r.GET("/", func(c *gin.Context) { - c.Header("Access-Control-Allow-Origin", "*") - c.Header("Access-Control-Allow-Headers", "access-control-allow-origin, access-control-allow-headers") - c.JSON(http.StatusOK, gin.H{ - "": welcomeTxt, - },) - }) + c.Header("Access-Control-Allow-Origin", "*") + c.Header("Access-Control-Allow-Headers", "access-control-allow-origin, access-control-allow-headers") + c.JSON(http.StatusOK, gin.H{ + "": welcomeTxt, + }) + }) r.Run() }