refactor: new (simpler) version of the sl library

This commit is contained in:
2023-01-31 13:43:20 +01:00
parent cacf58bc1d
commit be57412c40
12 changed files with 196 additions and 151 deletions
+2 -6
View File
@@ -6,10 +6,6 @@ import (
"github.com/gofiber/fiber/v2"
)
func NewRouter(r fiber.Router) *Router {
return &Router{r}
}
var Root = sl.NewSlot[fiber.Router]()
type Router struct{ fiber.Router }
func (s *Router) Initialize(l *sl.ServiceLocator) error { return nil }
var Api = sl.NewSlot[fiber.Router]()