18 lines
340 B
Go
18 lines
340 B
Go
package main
|
|
|
|
import (
|
|
internalhttp "github.com/ardeman/project-legalgo-go/internal/api/http"
|
|
pkgconfig "github.com/ardeman/project-legalgo-go/internal/config"
|
|
"github.com/go-chi/chi/v5"
|
|
"go.uber.org/fx"
|
|
)
|
|
|
|
func main() {
|
|
fx.New(
|
|
internalhttp.Module,
|
|
fx.Invoke(func(apiRouter chi.Router) {
|
|
pkgconfig.Router(apiRouter)
|
|
}),
|
|
)
|
|
}
|