Serve covers from assets

This commit is contained in:
Claudio Ortolina
2025-09-01 14:44:17 +03:00
parent 49c3a5cba2
commit bd12454884
4 changed files with 32 additions and 35 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ defmodule MusicLibraryWeb.Router do
get "/backup", ArchiveController, :backup
get "/covers/:record_id", CoverController, :show
get "/covers/:hash", CoverController, :show
get "/artists/:musicbrainz_id/image", ArtistController, :image
live_session :default,
@@ -79,7 +79,7 @@ defmodule MusicLibraryWeb.Router do
get "/collection/latest", CollectionController, :latest
get "/collection/random", CollectionController, :random
get "/collection", CollectionController, :index
get "/covers/:record_id", CoverController, :show
get "/covers/:hash", CoverController, :show
get "/backup", ArchiveController, :backup
end