Packages

Elixir-native host management with inspectable plans, package locks, systemd isolation, and remote bootstrap.

Current section

Files

Jump to
host_kit examples hello_phoenix lib hello_phoenix_web router.ex
Raw

examples/hello_phoenix/lib/hello_phoenix_web/router.ex

defmodule HelloPhoenixWeb.Router do
use HelloPhoenixWeb, :router
pipeline :browser do
plug(:accepts, ["html"])
end
pipeline :api do
plug(:accepts, ["json"])
end
scope "/", HelloPhoenixWeb do
pipe_through(:browser)
get("/", PageController, :home)
end
scope "/", HelloPhoenixWeb do
pipe_through(:api)
get("/health", HealthController, :show)
end
end