defmodule <%= application_module %>.Endpoint do use Phoenix.Endpoint, otp_app: :<%= application_name %> plug Plug.Static, at: "/", from: :<%= application_name %> plug Plug.Logger # Code reloading will only work if the :code_reloader key of # the :phoenix application is set to true in your config file. plug Phoenix.CodeReloader plug Plug.Parsers, parsers: [:urlencoded, :multipart, :json], pass: ["*/*"], json_decoder: Poison plug Plug.MethodOverride plug Plug.Head plug Plug.Session, store: :cookie, key: "_<%= application_name %>_key", signing_salt: "<%= signing_salt %>", encryption_salt: "<%= encryption_salt %>" plug :router, <%= application_module %>.Router end