opentelemetry-erlang-contrib/examples/roll_dice/lib/roll_dice_web/router.ex

14 lines
221 B
Elixir

defmodule RollDiceWeb.Router do
use RollDiceWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", RollDiceWeb do
pipe_through :api
get "/rolldice", DiceController, :roll
end
end