mirror of
https://github.com/rancher/norman.git
synced 2025-09-12 13:26:13 +00:00
Many enhancements
This commit is contained in:
@@ -26,7 +26,7 @@ func ValidateMethod(request *types.APIContext) error {
|
||||
return httperror.NewAPIError(httperror.MethodNotAllowed, fmt.Sprintf("Method %s not supported", request.Method))
|
||||
}
|
||||
|
||||
if request.Type == "" || request.Schema == nil {
|
||||
if request.Type == "" || request.Schema == nil || request.Link != "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user