Skip to content

Commit

Permalink
quick fix attributes .png -> .webp for now
Browse files Browse the repository at this point in the history
  • Loading branch information
whosneksio committed Jun 5, 2024
1 parent ee1a927 commit 25b96f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 25b96f3

Please sign in to comment.