add godotenv, regenerate swagger docs

This commit is contained in:
zardzul
2026-03-13 22:23:42 +01:00
parent 82e1b51d38
commit 873cd6a57d
12 changed files with 71 additions and 48 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ func Connect() (*pgxpool.Pool, *db.Queries, error) {
databaseURL := os.Getenv("DATABASE_URL")
if databaseURL == "" {
databaseURL = "postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable"
panic("DATABASE_URL environment variable not set")
}
pool, err := pgxpool.New(ctx, databaseURL)