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

11 lines
214 B
Elixir

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