Skip to content

Commit 7ed078b

Browse files
authored
support powerdns v4.4 and later (#44)
1 parent e2b9977 commit 7ed078b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

backend/backend.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ func (b *Backend) Run() error {
5151

5252
r.GET("/dnsapi/getDomainMetadata/:name/:kind", func(c *gin.Context) {
5353
c.JSON(200, gin.H{
54-
"result": false,
54+
"result": []string{"0"},
55+
})
56+
})
57+
58+
r.GET("/dnsapi/getAllDomainMetadata/:name", func(c *gin.Context) {
59+
c.JSON(200, gin.H{
60+
"result": gin.H{"PRESIGNED": []string{"0"}},
5561
})
5662
})
5763

0 commit comments

Comments
 (0)