Add allow_remote parameter to content fetching endpoint.

Fixes #92.
This commit is contained in:
Isaiah Inuwa 2020-02-19 12:55:22 -06:00
parent 959e10fd15
commit bb52edf1e0

View File

@ -21,6 +21,10 @@ ruma_api! {
/// The server name from the mxc:// URI (the authoritory component).
#[ruma_api(path)]
pub server_name: String,
/// Whether to fetch media deemed remote.
/// Used to prevent routing loops. Defaults to `true`.
#[ruma_api(query)]
pub allow_remote: Option<bool>,
}
response {