diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-07-09 18:30:15 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-07-10 18:08:03 +0700 |
commit | 0d54a571ca1c15e97faeeaa8ec18dc829052a94a (patch) | |
tree | 74e860f3c414c41544671b6e7759af0ad3dc47c8 /lib/pleroma/web/endpoint.ex | |
parent | 42422f3ff2d3a918f04e2d73b8d2f6867a51b5a7 (diff) | |
download | pleroma-0d54a571ca1c15e97faeeaa8ec18dc829052a94a.tar.gz |
Add SetLocalePlug
Diffstat (limited to 'lib/pleroma/web/endpoint.ex')
-rw-r--r-- | lib/pleroma/web/endpoint.ex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex index ddaf88f1d..c123530dc 100644 --- a/lib/pleroma/web/endpoint.ex +++ b/lib/pleroma/web/endpoint.ex @@ -7,13 +7,9 @@ defmodule Pleroma.Web.Endpoint do socket("/socket", Pleroma.Web.UserSocket) - # Serve at "/" the static files from "priv/static" directory. - # - # You should set gzip to true if you are running phoenix.digest - # when deploying your static files in production. + plug(Pleroma.Plugs.SetLocalePlug) plug(CORSPlug) plug(Pleroma.Plugs.HTTPSecurityPlug) - plug(Pleroma.Plugs.UploadedMedia) @static_cache_control "public, no-cache" @@ -30,6 +26,10 @@ defmodule Pleroma.Web.Endpoint do } ) + # Serve at "/" the static files from "priv/static" directory. + # + # You should set gzip to true if you are running phoenix.digest + # when deploying your static files in production. plug( Plug.Static, at: "/", |