server/lib/boardwise_web/controllers/coach_controller.ex

11 lines
222 B
Elixir
Raw Normal View History

2023-12-04 14:39:27 +00:00
defmodule BoardWiseWeb.CoachController do
use BoardWiseWeb, :controller
alias BoardWise.Coaches
def index(conn, _params) do
coaches = Coaches.list_coaches()
render(conn, :index, coaches: coaches)
end
end