Skip to content

Commit

Permalink
main.go更新
Browse files Browse the repository at this point in the history
  • Loading branch information
pirosiki197 committed Jan 12, 2025
1 parent 191f0d2 commit 2f6da2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/traPtitech/piscon-portal-v2/server/handler"
dbrepo "github.com/traPtitech/piscon-portal-v2/server/repository/db"
"github.com/traPtitech/piscon-portal-v2/server/services/oauth2"
"github.com/traPtitech/piscon-portal-v2/server/usecase"
)

func main() {
Expand Down Expand Up @@ -42,7 +43,8 @@ func main() {
},
}
repo := dbrepo.NewRepository(db)
handler, err := handler.New(repo, config)
useCase := usecase.New(repo)
handler, err := handler.New(useCase, repo, config)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 2f6da2d

Please sign in to comment.