|
|
@ -2980,8 +2980,10 @@ pub fn send_event_to_device_route(
|
|
|
|
pub fn get_media_config_route(
|
|
|
|
pub fn get_media_config_route(
|
|
|
|
db: State<'_, Database>,
|
|
|
|
db: State<'_, Database>,
|
|
|
|
) -> ConduitResult<get_media_config::Response> {
|
|
|
|
) -> ConduitResult<get_media_config::Response> {
|
|
|
|
let upload_size = db.globals.max_request_size().into();
|
|
|
|
Ok(get_media_config::Response {
|
|
|
|
Ok(get_media_config::Response { upload_size }.into())
|
|
|
|
upload_size: db.globals.max_request_size().into(),
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.into())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[post("/_matrix/media/r0/upload", data = "<body>")]
|
|
|
|
#[post("/_matrix/media/r0/upload", data = "<body>")]
|
|
|
|