fix: cannot run main app
This commit is contained in:
+5
-2
@@ -3,12 +3,15 @@ package main
|
||||
import (
|
||||
internalhttp "github.com/ardeman/project-legalgo-go/internal/api/http"
|
||||
pkgconfig "github.com/ardeman/project-legalgo-go/internal/config"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"go.uber.org/fx"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fx.New(
|
||||
fx.Provide(internalhttp.Module),
|
||||
fx.Invoke(pkgconfig.Router),
|
||||
internalhttp.Module,
|
||||
fx.Invoke(func(apiRouter chi.Router) {
|
||||
pkgconfig.Router(apiRouter)
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user