 defmodule OntagCoreWeb.EntryController do
   use OntagCoreWeb, :controller
   alias OntagCore.CMS
+  alias OntagCore.Repo
 
   plug OntagCoreWeb.Authentication when action in [:create]
   action_fallback OntagCoreWeb.FallbackController

      |> json(%{id: entry.id, title: entry.title})
    end
  end
end

  def index(conn, _) do
    entries =
      CMS.list_entries()
      |> Repo.preload(:medium_post)
      |> Repo.preload(:external_html)
      |> Enum.map(&take/1)

    conn
    |> put_status(:ok)
