feat(server): GET /api/hosts/:name returns latest fast/medium/slow samples

This commit is contained in:
Carsten 2026-04-21 22:30:35 +02:00
parent f09a77996b
commit 30b507ba6b
3 changed files with 71 additions and 4 deletions

View file

@ -20,10 +20,11 @@ defmodule ServerWeb.Router do
get "/", PageController, :home
end
# Other scopes may use custom stacks.
# scope "/api", ServerWeb do
# pipe_through :api
# end
scope "/api", ServerWeb do
pipe_through :api
get "/hosts/:name", HostController, :show
end
# Enable LiveDashboard in development
if Application.compile_env(:server, :dev_routes) do