14 lines
221 B
Elixir
Raw Normal View History

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