remove consumes and produces on root webservice (#2120)

This commit is contained in:
zryfish
2020-05-26 14:33:16 +08:00
committed by GitHub
parent 453c08f410
commit cb65048926

View File

@@ -40,9 +40,7 @@ func init() {
func NewWebService(gv schema.GroupVersion) *restful.WebService {
webservice := restful.WebService{}
webservice.Path(ApiRootPath + "/" + gv.String()).
Consumes(restful.MIME_JSON).
Produces(restful.MIME_JSON)
webservice.Path(ApiRootPath + "/" + gv.String())
return &webservice
}