fp/apps/bright/lib/bright_web/controllers/patron_controller.ex

11 lines
214 B
Elixir
Raw Permalink Normal View History

2025-01-03 06:45:35 -08:00
defmodule BrightWeb.PatronController do
use BrightWeb, :controller
alias Bright.Patrons
def index(conn, _params) do
patrons = Patrons.list_patrons()
render(conn, :index, patrons: patrons)
end
end