diff --git a/backend/controllers/game.go b/backend/controllers/game.go index ce7f0ca..a34c689 100644 --- a/backend/controllers/game.go +++ b/backend/controllers/game.go @@ -1,14 +1,15 @@ package controllers import ( - "backend/database" - "backend/models" - "backend/utils" "compress/gzip" "encoding/base64" "encoding/json" "net/http" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/database" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/models" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/utils" + "github.com/julienschmidt/httprouter" "gorm.io/gorm" ) diff --git a/backend/controllers/user.go b/backend/controllers/user.go index ac93e4c..1939c27 100644 --- a/backend/controllers/user.go +++ b/backend/controllers/user.go @@ -1,14 +1,15 @@ package controllers import ( - "backend/database" - "backend/models" - "backend/utils" "encoding/json" "errors" "net/http" "strconv" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/database" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/models" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/utils" + "github.com/julienschmidt/httprouter" ) diff --git a/backend/database/database.go b/backend/database/database.go index 7d858bf..b4827a9 100644 --- a/backend/database/database.go +++ b/backend/database/database.go @@ -1,9 +1,10 @@ package database import ( - "backend/models" "os" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/models" + "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/schema" diff --git a/backend/go.mod b/backend/go.mod index e32cc0e..11cfa58 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -1,4 +1,4 @@ -module backend +module git.cromer.cl/Proyecto-Titulo/alai-server/backend go 1.18 diff --git a/backend/main.go b/backend/main.go index 5b6925d..e544e21 100644 --- a/backend/main.go +++ b/backend/main.go @@ -1,11 +1,12 @@ package main import ( - "backend/database" - "backend/routes" "fmt" "os" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/database" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/routes" + "github.com/joho/godotenv" "gorm.io/gorm" ) diff --git a/backend/middlewares/auth.go b/backend/middlewares/auth.go index 6550ec1..acd42d7 100644 --- a/backend/middlewares/auth.go +++ b/backend/middlewares/auth.go @@ -1,11 +1,12 @@ package middlewares import ( - "backend/utils" "errors" "net/http" "strings" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/utils" + "github.com/julienschmidt/httprouter" ) diff --git a/backend/routes/game.go b/backend/routes/game.go index cbaa373..f62c914 100644 --- a/backend/routes/game.go +++ b/backend/routes/game.go @@ -1,8 +1,8 @@ package routes import ( - "backend/controllers" - "backend/middlewares" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/controllers" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/middlewares" "github.com/julienschmidt/httprouter" ) diff --git a/backend/routes/user.go b/backend/routes/user.go index 84e09fc..9133953 100644 --- a/backend/routes/user.go +++ b/backend/routes/user.go @@ -1,8 +1,8 @@ package routes import ( - "backend/controllers" - "backend/middlewares" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/controllers" + "git.cromer.cl/Proyecto-Titulo/alai-server/backend/middlewares" "github.com/julienschmidt/httprouter" )