adk_dev_router (erlang_adk v0.7.0)

View Source

Cowboy route bundle for the opt-in local ADK developer platform.

Summary

Functions

Build routes from the already-sanitized configuration returned by validate_config/1. The application HTTP owner uses this form so the raw bearer token never has to be retained or reintroduced after validation.

Functions

compile(Config)

-spec compile(map()) -> term().

routes(Config0)

-spec routes(map()) -> [term()].

routes_validated(Config)

-spec routes_validated(map()) -> [term()].

Build routes from the already-sanitized configuration returned by validate_config/1. The application HTTP owner uses this form so the raw bearer token never has to be retained or reintroduced after validation.

validate_config(Config)

-spec validate_config(map()) -> {ok, map()} | {error, term()}.