live_beats/lib/live_beats_web/live/nav.ex

8 lines
196 B
Elixir
Raw Normal View History

2021-10-29 16:12:23 +00:00
defmodule LiveBeatsWeb.Nav do
import Phoenix.LiveView
2021-11-01 01:19:52 +00:00
def on_mount(:default, _params, _session, socket) do
2021-10-29 16:12:23 +00:00
{:cont, assign(socket, genres: LiveBeats.MediaLibrary.list_genres())}
end
end