pub async fn get_registry(
loc: String,
context: Context,
) -> Result<impl Reply, Rejection>
Expand description
Returns the registry address for the requested location.
§Arguments
loc
: The location that the address is asked of.context
: The Context that contains stuff we need to run.
§Returns
A response that can be send to client. Specifically, it will contains the address of the registry as plain text.
§Errors
This function may error (i.e., reject the request) if we failed to load the infrastructure file.