Packages
A Fair Source multi-agent runtime with deterministic agent scoring and replayable run history.
Retired package: Deprecated - superseded — operator console moved to the Syntropy app
Current section
Files
Jump to
Current section
Files
lib/syntropy_web/controllers/api/perspective_controller.ex
defmodule SyntropyWeb.Api.PerspectiveController do
use SyntropyWeb, :controller
alias Syntropy.Contract
@spec index(Plug.Conn.t(), map()) :: Plug.Conn.t()
def index(conn, _params) do
catalog = Contract.perspectives_catalog()
json(conn, %{
data: %{
version: Map.get(catalog, "version"),
presets: Map.get(catalog, "presets", [])
}
})
end
end