mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
ddns: add listProviders api (#446)
* ddns: add listProviders api * fix swagger
This commit is contained in:
1 parent
0a859c75d7
commit
05b716d80f
6 files changed
+57
-92
No files matched your search
@@ -227,3 +227,20 @@ func listDDNS(c *gin.Context) error {
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
// List DDNS Providers
|
||||
// @Summary List DDNS providers
|
||||
// @Schemes
|
||||
// @Description List DDNS providers
|
||||
// @Security BearerAuth
|
||||
// @Tags auth required
|
||||
// @Produce json
|
||||
// @Success 200 {object} model.CommonResponse[[]string]
|
||||
// @Router /ddns/providers [get]
|
||||
func listProviders(c *gin.Context) error {
|
||||
c.JSON(http.StatusOK, model.CommonResponse[[]string]{
|
||||
Success: true,
|
||||
Data: model.ProviderList,
|
||||
})
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user