feat(server): GET /api/hosts/:name returns latest fast/medium/slow samples
This commit is contained in:
parent
f09a77996b
commit
30b507ba6b
3 changed files with 71 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue