mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
17 lines
303 B
Go
17 lines
303 B
Go
package api
|
|
|
|
import (
|
|
"go.uber.org/fx"
|
|
)
|
|
|
|
func TagVersion() fx.Annotation {
|
|
return fx.ResultTags(`group:"apiVersions"`)
|
|
}
|
|
|
|
func NewModule() fx.Option {
|
|
return fx.Options(
|
|
fx.Provide(fx.Annotate(NewRouter, fx.ParamTags(``, ``, ``, ``, `group:"apiVersions"`))),
|
|
fx.Provide(NewDefaultBackend),
|
|
)
|
|
}
|