diff --git a/README.md b/README.md index 6705f40..a6fc90d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 🔗 Unofficial API & CDN for Wuthering Waves on [**resonance.rest**](https://api.resonance.rest) - made with **Go**, stored data in **JSON** and deployed on [**Railway**](https://railway.app). +# 🔗 Unofficial API for Wuthering Waves on [**api.resonance.rest**](https://api.resonance.rest) - made with **Go**, stored data in **JSON** and deployed on [**Railway**](https://railway.app). ### This is **not** a final version, I need people to complete the game data, if you are interested, write me on [**Telegram**](https://t.me/whosneksio). diff --git a/main.go b/main.go index 9f0b00d..f9320ed 100644 --- a/main.go +++ b/main.go @@ -283,7 +283,7 @@ func main() { for _, path := range []string{"icon"} { r.GET(fmt.Sprintf("/attributes/:name/%s", path), func(c *gin.Context) { name := strings.ToLower(c.Param("name")) - remoteURL := fmt.Sprintf("%sattributes/%s/%s.png", cdnURL, path, name) + remoteURL := fmt.Sprintf("%sattributes/%s/%s.webp", cdnURL, path, name) resp, err := http.Get(remoteURL) if err != nil { c.JSON(http.StatusNotFound, gin.H{"message": fmt.Sprintf("%s not found", strings.Title(path)), "docs": docsURL})