Added default api controller.

This commit is contained in:
2026-02-11 11:08:05 +01:00
parent 56ec80623d
commit 18f883c9ad
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
defmodule BeetRoundServerWeb.DefaultApiController do
use BeetRoundServerWeb, :controller
def index(conn, _params) do
text(conn, "The Beet Round API (#{Mix.env()}) is running.")
end
end

View File

@ -27,6 +27,8 @@ defmodule BeetRoundServerWeb.Router do
scope "/api", BeetRoundServerWeb do
pipe_through :api
get "/", DefaultApiController, :index
resources "/bidding_rounds", BiddingRoundController, except: [:new, :edit]
end