c7edb8a48c
* 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>
14 lines
221 B
Elixir
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
|