Remove /get-default-providers API.

This commit is contained in:
Yang Luo
2021-05-14 16:07:39 +08:00
parent 9346587ca6
commit db5ecddd3f
5 changed files with 1 additions and 46 deletions

View File

@ -32,18 +32,6 @@ func (c *ApiController) GetProviders() {
c.ServeJSON()
}
// @Title GetDefaultProviders
// @Description get default providers
// @Param owner query string true "The owner of providers"
// @Success 200 {array} object.Provider The Response object
// @router /get-default-providers [get]
func (c *ApiController) GetDefaultProviders() {
owner := c.Input().Get("owner")
c.Data["json"] = object.GetDefaultProviders(owner)
c.ServeJSON()
}
// @Title GetProvider
// @Description get provider
// @Param id query string true "The id of the provider"