ash_hq/lib/ash_hq_web/controllers/import_controller.ex
2022-06-05 14:03:04 -04:00

8 lines
200 B
Elixir

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