fix: refactor layout init
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/ardeman/project-legalgo-go/config"
|
||||
"github.com/ardeman/project-legalgo-go/database"
|
||||
repository "github.com/ardeman/project-legalgo-go/internal/accessor"
|
||||
internalhttp "github.com/ardeman/project-legalgo-go/internal/api/http"
|
||||
@@ -19,6 +20,8 @@ func init() {
|
||||
if err := godotenv.Load(); err != nil {
|
||||
log.Fatal("cannot load environment file")
|
||||
}
|
||||
|
||||
config.InitEnv()
|
||||
}
|
||||
|
||||
func run(lc fx.Lifecycle, db *database.DB, apiRouter chi.Router) {
|
||||
|
||||
Reference in New Issue
Block a user