mirror of
https://github.com/rancher/steve.git
synced 2025-09-04 17:01:16 +00:00
Full dynamic RBAC and pagination
This commit is contained in:
@@ -165,6 +165,8 @@ func (s *Server) handle(apiOp *types.APIRequest, parser parse.Parser) {
|
||||
apiOp.WriteResponse(code, obj)
|
||||
} else if list, ok := data.(types.APIObjectList); ok {
|
||||
apiOp.WriteResponseList(code, list)
|
||||
} else if code > http.StatusOK {
|
||||
apiOp.Response.WriteHeader(code)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user