Fix cannot get registered resource (#5515)

* Fix can`t get registered resource

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>

* update v1beta1 interface Get func`s parameters

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>

---------

Signed-off-by: wenhaozhou <wenhaozhou@yunify.com>
This commit is contained in:
Wenhao Zhou
2023-02-15 10:50:23 +08:00
committed by GitHub
parent 2cd5f45d47
commit b143b41e3c
3 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ func (u *unregisteredMiddleware) Handle(w http.ResponseWriter, req *http.Request
rootPath := fmt.Sprintf("/kapis/%s/%s", gvr.Group, gvr.Version)
if u.registeredGv.Has(rootPath) {
return true
return false
}
var (