This commit is contained in:
gom-by
2025-01-16 15:07:38 +01:00
parent 873820bc5a
commit 89f44f4469
3 changed files with 1 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ package api
import (
"context"
"fmt"
"net/http"
core "fr.latosa-escrima/api/core"

View File

@@ -2,7 +2,6 @@ package api
import (
"context"
"encoding/json"
"net/http"
core "fr.latosa-escrima/api/core"

View File

@@ -35,6 +35,7 @@ func main() {
User: os.Getenv("POSTGRES_USER"),
Password: os.Getenv("POSTGRES_PASSWORD"),
}
fmt.Println(dsn.ToString())
core.DB, err = core.InitDatabase(dsn)
if err != nil {
log.Fatal(err)