We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4d8ac commit 9f51f36Copy full SHA for 9f51f36
main.go
@@ -93,13 +93,13 @@ func main() {
93
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
94
return
95
}
96
- slug, err := store.Set(data.URL)
+ id, err := store.Set(data.URL)
97
if err != nil {
98
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
99
100
101
102
- c.JSON(http.StatusOK, gin.H{"id": slug, "link": address + slug})
+ c.JSON(http.StatusOK, gin.H{"id": id, "link": address + id})
103
})
104
log.Fatal(r.Run(port))
105
0 commit comments