Change /covers to /assets

This commit is contained in:
Claudio Ortolina
2025-09-18 20:15:31 +03:00
parent e0ecafadd5
commit e158345674
10 changed files with 26 additions and 26 deletions
@@ -21,8 +21,8 @@ defmodule MusicLibraryWeb.CollectionJSON do
id: record.id,
artists: Enum.map(record.artists, & &1.name),
title: record.title,
cover_url: url(~p"/api/covers/#{%Transform{hash: record.cover_hash}}"),
thumb_url: url(~p"/api/covers/#{%Transform{hash: record.cover_hash, width: 480}}")
cover_url: url(~p"/api/assets/#{%Transform{hash: record.cover_hash}}"),
thumb_url: url(~p"/api/assets/#{%Transform{hash: record.cover_hash, width: 480}}")
}
end
end