19 lines
452 B
Elixir
19 lines
452 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.Web.Server.Router
|
|
end
|