Added default api controller.
This commit is contained in:
@ -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
|
||||||
@ -27,6 +27,8 @@ defmodule BeetRoundServerWeb.Router do
|
|||||||
scope "/api", BeetRoundServerWeb do
|
scope "/api", BeetRoundServerWeb do
|
||||||
pipe_through :api
|
pipe_through :api
|
||||||
|
|
||||||
|
get "/", DefaultApiController, :index
|
||||||
|
|
||||||
resources "/bidding_rounds", BiddingRoundController, except: [:new, :edit]
|
resources "/bidding_rounds", BiddingRoundController, except: [:new, :edit]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user