analytics/lib/plausible_web/controllers/page_controller.ex

16 lines
457 B
Elixir
Raw Normal View History

2019-09-02 14:29:19 +03:00
defmodule PlausibleWeb.PageController do
use PlausibleWeb, :controller
use Plausible.Repo
plug PlausibleWeb.RequireLoggedOutPlug
@doc """
The root path is never accessible in Plausible.Cloud because it is handled by the upstream reverse proxy.
This controller action is only ever triggered in self-hosted Plausible.
"""
2019-09-02 14:29:19 +03:00
def index(conn, _params) do
render(conn, "index.html", layout: {PlausibleWeb.LayoutView, "focus.html"})
2019-09-02 14:29:19 +03:00
end
end