swiss v3.4.4 Swiss.Phoenix.Controller View Source
Helper functions for Phoenix controllers.
Link to this section Summary
Link to this section Functions
Link to this function
redirect_back(conn, fallback \\ "/")
View Sourceredirect_back(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
Redirects back to the referer, or to fallback
when missing.
Does not redirect back to an external host.
Link to this function
render_no_content(conn)
View Sourcerender_no_content(Plug.Conn.t()) :: Plug.Conn.t()
Returns 204 No Content.