Marc Delagrammatikas c7edb8a48c
Dice game example (#173)
* generate a phoenix API only project

* adds /api/rolldice endpoint and opentelemetry configuration

* change span attribute name to match implementations in other langs

---------

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-10-27 13:23:07 -06:00

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