server/lib/boardwise_web/controllers/language_controller.ex

11 lines
225 B
Elixir
Raw Normal View History

2023-12-05 22:15:59 +00:00
defmodule BoardWiseWeb.LanguageController do
use BoardWiseWeb, :controller
alias BoardWise.Languages
def index(conn, _params) do
langs = Languages.list_languages()
render(conn, :index, langs: langs)
end
end