add static route module

This commit is contained in:
yanghao05
2023-01-30 19:33:24 +08:00
parent 2553252049
commit 591543d2a8
6 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
package container
import (
"atom/container"
"atom/modules/resources/routes"
"log"
"go.uber.org/dig"
)
func init() {
if err := container.Container.Provide(routes.NewRoute, dig.Group("route")); err != nil {
log.Fatal(err)
}
}