Skip to content

Commit

Permalink
small clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ciCCic committed Apr 16, 2020
1 parent 21319d9 commit c5f473e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/nrcnewsapi/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit c5f473e

Please sign in to comment.