server/lib/boardwise_web/controllers/language_controller.ex

11 lines
225 B
Elixir
Raw Normal View History

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