Packages

Live error monitoring to watch your Phoenix app going up in flames in real time! Open source version of error aggregation services. Hooks into Elixir's Logger to provide accurate error reporting all throughout your application.

Current section

Files

Jump to
flames lib web router.ex
Raw

lib/web/router.ex

if Code.ensure_loaded?(Phoenix.Router) do
defmodule Flames.Router do
@moduledoc """
"""
use Phoenix.Router
def static_path(%Plug.Conn{script_name: script}, path), do: Path.join(script, "/") <> path
pipeline :browser do
plug :accepts, ~w(html)
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Flames do
pipe_through :browser
get "/", ErrorsController, :interface
end
scope "/api", Flames do
pipe_through :api
get "/errors", ErrorsController, :index
get "/errors/:id", ErrorsController, :show
delete "/errors/:id", ErrorsController, :delete
get "/errors/search", ErrorsController, :search
end
end
end