Adds API to return a random record from the collection

This commit is contained in:
Claudio Ortolina
2025-01-01 19:19:40 +00:00
parent 1208d35174
commit d194a54760
3 changed files with 18 additions and 0 deletions
+1
View File
@@ -58,6 +58,7 @@ defmodule MusicLibraryWeb.Router do
pipe_through :api
get "/collection/latest", CollectionController, :latest
get "/collection/random", CollectionController, :random
get "/covers/:record_id", CoverController, :show
end