mirror of
https://github.com/rancher/steve.git
synced 2025-09-01 15:37:31 +00:00
cleanup: remove duplicate apiserver import
Remove duplicate import and make aliasing of other apiserver imports consistent throughout steve.
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/rancher/apiserver/pkg/server"
|
||||
apiserver "github.com/rancher/apiserver/pkg/server"
|
||||
"github.com/rancher/apiserver/pkg/types"
|
||||
"github.com/rancher/steve/pkg/accesscontrol"
|
||||
"github.com/rancher/steve/pkg/attributes"
|
||||
@@ -55,7 +55,7 @@ type Template struct {
|
||||
StoreFactory func(types.Store) types.Store
|
||||
}
|
||||
|
||||
func WrapServer(factory Factory, server *server.Server) http.Handler {
|
||||
func WrapServer(factory Factory, server *apiserver.Server) http.Handler {
|
||||
return http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
|
||||
user, ok := request.UserFrom(req.Context())
|
||||
if !ok {
|
||||
|
Reference in New Issue
Block a user