review test database and fix config restserver
This commit is contained in:
1 parent
d379223517
commit
f5a652c13b
10 files changed
+17
-8
No files matched your search
@@ -5,6 +5,7 @@ import (
|
||||
"log"
|
||||
|
||||
"git.ukamnya.ru/stulyaganov/RestApi/internal/restserver"
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -18,6 +19,7 @@ func init() {
|
||||
func main() {
|
||||
|
||||
flag.Parse()
|
||||
godotenv.Load(".env")
|
||||
|
||||
config := restserver.NewConfig()
|
||||
if err := config.SetConfig(configPath); err != nil {
|
||||
|
||||
Reference in new issue
Block a user