rewrite competition service: remove http related things

This commit is contained in:
Timur Kh.
2025-12-17 12:21:08 +03:00
parent e18489c96c
commit f3620da240
12 changed files with 229 additions and 543 deletions
+2
View File
@@ -20,6 +20,7 @@ type Config struct {
DBUser string
DBPassword string
DBName string
JWTSecret string
}
func Load() (*Config, error) {
@@ -35,6 +36,7 @@ func Load() (*Config, error) {
DBUser: getEnv("POSTGRES_USERNAME", "postgres"),
DBPassword: getEnv("POSTGRES_PASSWORD", "postgres"),
DBName: getEnv("POSTGRES_DATABASE", "postgres"),
JWTSecret: getEnv("JWT_SECRET", "your-secret-key-change-in-production"),
}, nil
}