Fix return of link endpoint

This commit is contained in:
Danijel Fischer
2020-06-13 12:29:28 +02:00
parent 0c03b190c3
commit 673c7045aa

View File

@@ -269,7 +269,7 @@ func main() {
c.JSON(400, gin.H{"error": err.Error()})
return
}
c.String(200, gin.H{"uri": string(out)})
c.JSON(200, gin.H{"uri": string(out)})
})
router.POST("/v1/register/:number", func(c *gin.Context) {