refactor: move app wiring to internal root
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"mal/internal/app"
|
||||
"mal/internal"
|
||||
"mal/internal/observability"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
@@ -13,6 +13,6 @@ func main() {
|
||||
observability.Warn("env_file_load_failed", "server", "", nil, err)
|
||||
}
|
||||
|
||||
application := app.NewApp()
|
||||
application := internal.NewApp()
|
||||
application.Run()
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// Package app bootstraps and wires the application dependencies.
|
||||
package app
|
||||
package internal
|
||||
|
||||
import (
|
||||
"mal/integrations/jikan"
|
||||
@@ -36,6 +35,7 @@ func NewApp() *fx.App {
|
||||
playback.Module,
|
||||
templates.Module,
|
||||
server.Module,
|
||||
fx.Invoke(RunMigrationsAndFixes),
|
||||
fx.Provide(func(r *templates.Renderer) render.HTMLRender {
|
||||
return r
|
||||
}),
|
||||
Reference in New Issue
Block a user