mirror of
https://github.com/bitmagnet-io/bitmagnet.git
synced 2026-05-07 04:39:48 -04:00
20 lines
477 B
Go
20 lines
477 B
Go
package httpserverfx
|
|
|
|
import (
|
|
"github.com/bitmagnet-io/bitmagnet/internal/boilerplate/config/configfx"
|
|
"github.com/bitmagnet-io/bitmagnet/internal/boilerplate/httpserver"
|
|
"github.com/bitmagnet-io/bitmagnet/internal/boilerplate/httpserver/cors"
|
|
"go.uber.org/fx"
|
|
)
|
|
|
|
func New() fx.Option {
|
|
return fx.Module(
|
|
"http_server",
|
|
configfx.NewConfigModule[httpserver.Config]("http_server", httpserver.NewDefaultConfig()),
|
|
fx.Provide(
|
|
httpserver.New,
|
|
cors.New,
|
|
),
|
|
)
|
|
}
|