support powerdns v4.4 and later (#44)

This commit is contained in:
陈明 2021-11-27 23:00:25 +08:00 committed by GitHub
parent e2b997707b
commit 7ed078bb78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -51,7 +51,13 @@ func (b *Backend) Run() error {
r.GET("/dnsapi/getDomainMetadata/:name/:kind", func(c *gin.Context) {
c.JSON(200, gin.H{
"result": false,
"result": []string{"0"},
})
})
r.GET("/dnsapi/getAllDomainMetadata/:name", func(c *gin.Context) {
c.JSON(200, gin.H{
"result": gin.H{"PRESIGNED": []string{"0"}},
})
})