ProxyPlug (onward v0.0.1)
A plug module for proxying paths to another location using a macro.
Example Usage
defmodule MyRouter do
use Plug.Router
use ProxyPlug
plug :match
plug :dispatch
proxy "/path", to: "http://localhost:4000"
match _ do
send_resp(conn, 404, "Not Found")
end
end
Summary
Functions
Defines a proxy route that forwards requests from the specified path to the given destination.