mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
removed unecessary prints
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"wallet-api/pkg/api"
|
||||
"wallet-api/pkg/middleware"
|
||||
@@ -13,11 +12,9 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Start")
|
||||
godotenv.Load()
|
||||
|
||||
dbUrl := os.Getenv("DATABASE_URL")
|
||||
fmt.Println("Database: ", dbUrl)
|
||||
r := gin.New()
|
||||
r.Use(middleware.CORSMiddleware())
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"wallet-api/pkg/migrate"
|
||||
"wallet-api/pkg/utl/db"
|
||||
@@ -10,11 +9,9 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Start migrate")
|
||||
godotenv.Load()
|
||||
|
||||
dbUrl := os.Getenv("DATABASE_URL")
|
||||
fmt.Println("Database: ", dbUrl)
|
||||
|
||||
conn := db.CreateConnection(dbUrl)
|
||||
migrate.Start(conn)
|
||||
|
||||
Reference in New Issue
Block a user