good morning!!!!
Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
fix: http app
· f09caed3
a
authored
Feb 23, 2024
f09caed3
Hide whitespace changes
Inline
Side-by-side
fxchi/fxchi.go
View file @
f09caed3
...
...
@@ -18,9 +18,15 @@ func HttpApp(opts ...fx.Option) fx.Option {
)
}
func
RouterHandler
(
routes
[]
func
(
chi
.
Router
))
http
.
Handler
{
type
RouterParams
struct
{
fx
.
In
Routes
[]
func
(
chi
.
Router
)
`group:"fxchi"`
}
func
RouterHandler
(
p
RouterParams
)
http
.
Handler
{
r
:=
chi
.
NewRouter
()
for
_
,
fn
:=
range
r
outes
{
for
_
,
fn
:=
range
p
.
R
outes
{
fn
(
r
)
}
return
r
...
...