defmodule ComfycampWeb.NotesController do use ComfycampWeb, :controller alias Comfycamp.Notes def index(conn, _params) do notes = Notes.list_notes() render(conn, :index, page_title: "Заметки", notes: notes) end def show(conn, %{"id" => id}) do note = Notes.get_note!(id) render(conn, :show, page_title: note.title, note: note) end end