1 defmodule TechRadarEditor.Endpoint do
2 use Phoenix.Endpoint, otp_app: :tech_radar_editor
4 socket "/socket", TechRadarEditor.UserSocket
6 # Serve at "/" the static files from "priv/static" directory.
8 # You should set gzip to true if you are running phoenix.digest
9 # when deploying your static files in production.
11 at: "/", from: :tech_radar_editor, gzip: false,
12 only: ~w(css fonts images js favicon.ico robots.txt)
14 # Code reloading can be explicitly enabled under the
15 # :code_reloader configuration of your endpoint.
17 socket "/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket
18 plug Phoenix.LiveReloader
19 plug Phoenix.CodeReloader
26 parsers: [:urlencoded, :multipart, :json],
30 plug Plug.MethodOverride
33 # The session will be stored in the cookie and signed,
34 # this means its contents can be read but not tampered with.
35 # Set :encryption_salt if you would also like to encrypt it.
38 key: "_tech_radar_editor_key",
39 signing_salt: "w4okXyT7"
41 plug TechRadarEditor.Router