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