live_beats/lib/live_beats_web/live/nav.ex
2021-10-31 21:19:52 -04:00

7 lines
196 B
Elixir

defmodule LiveBeatsWeb.Nav do
import Phoenix.LiveView
def on_mount(:default, _params, _session, socket) do
{:cont, assign(socket, genres: LiveBeats.MediaLibrary.list_genres())}
end
end