Put some stats on the home page

This commit is contained in:
Claudio Ortolina
2024-09-28 22:41:53 +01:00
parent e00c926afe
commit 8d6bfaf035
4 changed files with 29 additions and 1 deletions
@@ -0,0 +1,10 @@
defmodule MusicLibraryWeb.StatsController do
use MusicLibraryWeb, :controller
alias MusicLibrary.Records
def index(conn, _params) do
records_count = Records.count_records()
render(conn, :index, records_count: records_count)
end
end