From 36f4e1c28e9dd8cec43021623cd7e3b0dab85ff8 Mon Sep 17 00:00:00 2001 From: 2xic <5640782+2xic@users.noreply.github.com> Date: Wed, 15 Mar 2023 10:29:03 +0100 Subject: [PATCH] Fixed bug, listen for outside requests --- .gitignore | 1 + main.go | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5bfcd1f..cb82367 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env dist +.DS_Store diff --git a/main.go b/main.go index 1432565..f124a17 100644 --- a/main.go +++ b/main.go @@ -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") }