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

11 lines
214 B
Elixir
Raw Normal View History

2025-01-03 14:45:35 +00: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