mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
refactor: structure of api-router directory
This commit is contained in:
parent
d272f7900f
commit
50b4fbcda4
38 changed files with 610 additions and 524 deletions
22
api/certificate/router.go
Normal file
22
api/certificate/router.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
package certificate
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func InitDNSCredentialRouter(r *gin.RouterGroup) {
|
||||
r.GET("dns_credentials", GetDnsCredentialList)
|
||||
r.GET("dns_credential/:id", GetDnsCredential)
|
||||
r.POST("dns_credential", AddDnsCredential)
|
||||
r.POST("dns_credential/:id", EditDnsCredential)
|
||||
r.DELETE("dns_credential/:id", DeleteDnsCredential)
|
||||
}
|
||||
|
||||
func InitCertificateRouter(r *gin.RouterGroup) {
|
||||
r.GET("domain/:name/cert", IssueCert)
|
||||
r.GET("certs", GetCertList)
|
||||
r.GET("cert/:id", GetCert)
|
||||
r.POST("cert", AddCert)
|
||||
r.POST("cert/:id", ModifyCert)
|
||||
r.DELETE("cert/:id", RemoveCert)
|
||||
r.GET("auto_cert/dns/providers", GetDNSProvidersList)
|
||||
r.GET("auto_cert/dns/provider/:code", GetDNSProvider)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue