diff --git a/go.mod b/go.mod index a306e97..a9b7c4b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/rwth-acis/modernizer -go 1.20 +go 1.21 + +toolchain go1.21.5 require github.com/gin-gonic/gin v1.9.1 diff --git a/main.go b/main.go index d1b25c3..1521775 100644 --- a/main.go +++ b/main.go @@ -1,20 +1,21 @@ package main import ( - "github.com/gin-gonic/gin" "io" "net/http" "net/http/httputil" "net/url" + + "github.com/gin-gonic/gin" ) var OllamaURL = "http://ollama-service.ba-kovacevic:11434" func main() { router := gin.Default() - router.GET("/", getInfo) + // router.GET("/", getInfo) - router.Any("/api/*proxyPath", proxy) + router.Any("/*proxyPath", proxy) err := router.Run(":8080") if err != nil {