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.

15 lines
337 B

defmodule MirageWeb.UserController do
use MirageWeb, :controller
def index(conn, _params) do
last_edited = Mirage.Notes.list_notes(:last_edited)
unlinked = Mirage.Notes.list_notes(:unlinked)
render(conn, "index.html",
notes: %{
last_edited: last_edited,
unlinked: unlinked