Skip to content

Instantly share code, notes, and snippets.

@cybrox
Created April 26, 2019 12:09
Show Gist options
  • Select an option

  • Save cybrox/8d13ac67987f72850fcedf824c64eff5 to your computer and use it in GitHub Desktop.

Select an option

Save cybrox/8d13ac67987f72850fcedf824c64eff5 to your computer and use it in GitHub Desktop.
phx-stat2.ex
defmodule PhxstaticWeb.Router do
use PhxstaticWeb, :router
pipeline :static do
plug Plug.Static,
at: "/static",
from: {:phxstatic, "priv/test"}
end
scope "/", PhxstaticWeb do
scope "/static" do
pipe_through :static
get "/*path", ErrorController, :notfound
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment