brane_api::infra

Function registries

Source
pub async fn registries(context: Context) -> Result<impl Reply, Rejection>
Expand description

Lists the registries at each location.

§Arguments

  • context: The Context that contains stuff we need to run.

§Returns

A response that can be send to client. Specifically, it will contains a map (i.e., HashMap) of locations names to addresses where their registries may be found.

§Errors

This function may error (i.e., reject the request) if we failed to load the infrastructure file.