refactor: update watchlist module imports for flattened package structure
This commit is contained in:
@@ -2,21 +2,18 @@ package watchlist
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"mal/internal/server"
|
"mal/internal/server"
|
||||||
"mal/internal/watchlist/handler"
|
|
||||||
"mal/internal/watchlist/repository"
|
|
||||||
"mal/internal/watchlist/service"
|
|
||||||
|
|
||||||
"go.uber.org/fx"
|
"go.uber.org/fx"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Module = fx.Options(
|
var Module = fx.Options(
|
||||||
fx.Provide(
|
fx.Provide(
|
||||||
repository.NewWatchlistRepository,
|
NewWatchlistRepository,
|
||||||
service.NewWatchlistService,
|
NewWatchlistService,
|
||||||
handler.NewWatchlistHandler,
|
NewWatchlistHandler,
|
||||||
),
|
),
|
||||||
fx.Provide(
|
fx.Provide(
|
||||||
server.AsRouteRegister(func(h *handler.WatchlistHandler) server.RouteRegister {
|
server.AsRouteRegister(func(h *WatchlistHandler) server.RouteRegister {
|
||||||
return h
|
return h
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user