Adds API to return a random record from the collection
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user