Skip to content
Snippets Groups Projects
Commit 5e7ceeba authored by lain's avatar lain
Browse files

Merge branch 'ostatus' of ssh.gitgud.io:lambadalambda/pleroma into ostatus

parents cc330421 9167a2eb
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,9 @@ defmodule Pleroma.Web.Endpoint do
# when deploying your static files in production.
plug Plug.Static,
at: "/media", from: "uploads", gzip: false
plug Plug.Static,
at: "/", from: :pleroma,
only: ~w(index.html static)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
......
......@@ -71,4 +71,14 @@ def user_fetcher(username) do
get "/host-meta", WebFinger.WebFingerController, :host_meta
get "/webfinger", WebFinger.WebFingerController, :webfinger
end
scope "/", Fallback do
get "/*path", RedirectController, :redirector
end
end
defmodule Fallback.RedirectController do
use Pleroma.Web, :controller
def redirector(conn, _params), do: send_file(conn, 200, "priv/static/index.html")
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment