live_beats/lib/live_beats_web/live/nav.ex

9 lines
229 B
Elixir
Raw Normal View History

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