Packages
A Fair Source multi-agent runtime with deterministic agent scoring and replayable run history.
Current section
Files
Jump to
Current section
Files
lib/syntropy_web.ex
defmodule SyntropyWeb do
@moduledoc false
def router do
quote do
use Phoenix.Router, helpers: false
import Phoenix.Controller
end
end
def controller do
quote do
use Phoenix.Controller, formats: [:json]
import Plug.Conn
unquote(verified_routes())
end
end
def verified_routes do
quote do
use Phoenix.VerifiedRoutes,
endpoint: SyntropyWeb.Endpoint,
router: SyntropyWeb.Router,
statics: ~w()
end
end
defmacro __using__(which) when is_atom(which) do
apply(__MODULE__, which, [])
end
end