defmodule ArcadiaCloudWeb.Router do use ArcadiaCloudWeb, :router pipeline :api do plug :accepts, ["json"] end pipeline :authed do plug ArcadiaCloudWeb.Plugs.RequireAuth end scope "/api", ArcadiaCloudWeb do pipe_through :api get "/health", HealthController, :show end scope "/api/v1", ArcadiaCloudWeb do pipe_through [:api, :authed] get "/inventory", InventoryController, :index get "/billing/balance", BillingController, :balance get "/billing/cost-lines", BillingController, :cost_lines get "/drift", DriftController, :index post "/drift/:id/accept", DriftController, :accept end end