restructured controllers

This commit is contained in:
Fran Jurmanović
2021-05-09 14:33:36 +02:00
parent 316c39b2dd
commit 9522fe1fce
6 changed files with 30 additions and 14 deletions

View File

@@ -3,7 +3,6 @@ package main
import (
"os"
"wallet-api/pkg/api"
"wallet-api/pkg/utl/common"
"wallet-api/pkg/utl/db"
"wallet-api/pkg/utl/server"
@@ -12,8 +11,7 @@ import (
)
func main() {
err := godotenv.Load()
common.CheckError(err)
godotenv.Load()
dbUrl := os.Getenv("DATABASE_URL")
r := gin.Default()