Skip to content

Commit

Permalink
Fixed bug, listen for outside requests
Browse files Browse the repository at this point in the history
  • Loading branch information
2xic committed Mar 15, 2023
1 parent 0daa54d commit 36f4e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
dist
.DS_Store
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ func executeSql(c *gin.Context) {
}

func main() {
router := gin.Default()
// router := gin.Default()
router := gin.New()
router.POST("/", executeSql)

router.Run("localhost:8080")
// router.Run("localhost:8080")
router.Run("0.0.0.0:8080")
}

0 comments on commit 36f4e1c

Please sign in to comment.