diff --git a/container.go b/container.go index 75a3c32..b1cf5ff 100644 --- a/container.go +++ b/container.go @@ -7,7 +7,6 @@ import ( "net/http/httptest" "os" "reflect" - "slices" "github.com/emicklei/go-restful/v3" "github.com/go-openapi/spec" @@ -226,5 +225,5 @@ func (c *Container) NewWS() WS { } func (c *Container) RouteAPI(f any, opts ...opt.RouteAPIOpts) opt.RouteFunc { - return opt.RouteAPI(f, slices.Concat([]opt.RouteAPIOpts{opt.WithLogger(c.logger)}, opts)...) + return opt.RouteAPI(f, append([]opt.RouteAPIOpts{opt.WithLogger(c.logger)}, opts...)...) }