ash_hq/lib/ash_hq_web/controllers/import_controller.ex

9 lines
200 B
Elixir
Raw Normal View History

2022-06-06 06:03:04 +12:00
defmodule AshHqWeb.ImportController do
use AshHqWeb, :controller
def import(conn, %{"library" => library}) do
send_resp(conn, :ok, "")
AshHq.Docs.Importer.import(only: library)
end
end