11 lines
214 B
Elixir
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
|