My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
312 B

defmodule MirageWeb.BlogLive do
@moduledoc """
A page which shows all notes in the list @blog
"""
use MirageWeb, :live_view
@impl true
def mount(_params, session, socket) do
list = Mirage.Lists.get_list_by_name("@blog")
{:ok, assign(socket, %{list: list}) |> with_user(session)}
end
end