ex-scopes/apps/csys/lib/server/endpoint.ex

19 lines
453 B
Elixir

defmodule Scopes.CSys.Server.Endpoint do
use Phoenix.Endpoint, otp_app: :scopes_csys
plug Plug.Static,
at: "/",
from: :scopes_csys,
gzip: not code_reloading?,
only: Scopes.Web.Server.static_paths(),
raise_on_missing_only: code_reloading?
plug Plug.RequestId
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Phoenix.json_library()
plug Scopes.CSys.Server.Router
end