mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
style: format go code with tab indent #605
This commit is contained in:
parent
96cff98c66
commit
598d91a417
15 changed files with 244 additions and 251 deletions
|
@ -1,27 +1,26 @@
|
|||
package certificate
|
||||
|
||||
import (
|
||||
"github.com/0xJacky/Nginx-UI/internal/cert/dns"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
"github.com/0xJacky/Nginx-UI/internal/cert/dns"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func GetDNSProvidersList(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, dns.GetProvidersList())
|
||||
c.JSON(http.StatusOK, dns.GetProvidersList())
|
||||
}
|
||||
|
||||
func GetDNSProvider(c *gin.Context) {
|
||||
code := c.Param("code")
|
||||
code := c.Param("code")
|
||||
|
||||
provider, ok := dns.GetProvider(code)
|
||||
provider, ok := dns.GetProvider(code)
|
||||
|
||||
if !ok {
|
||||
c.JSON(http.StatusNotFound, gin.H{
|
||||
"message": "provider not found",
|
||||
})
|
||||
return
|
||||
}
|
||||
if !ok {
|
||||
c.JSON(http.StatusNotFound, gin.H{
|
||||
"message": "provider not found",
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, provider)
|
||||
c.JSON(http.StatusOK, provider)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue