mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-06-02 21:49:34 +00:00
9 lines
229 B
Elixir
9 lines
229 B
Elixir
|
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
|