mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 11:02:52 +03:00
25f95ae84e
* add landing page * cont. * add redirect to /sites test * add changelog entry * adapt for mobile
16 lines
457 B
Elixir
16 lines
457 B
Elixir
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.
|
|
"""
|
|
def index(conn, _params) do
|
|
render(conn, "index.html", layout: {PlausibleWeb.LayoutView, "focus.html"})
|
|
end
|
|
end
|