Put all URLs under /api/
This commit is contained in:
@@ -732,7 +732,7 @@ fn message_render(msg: &ShowThreadQueryThreadMessages, open: bool) -> Node<Msg>
|
||||
let default = "UNKNOWN_FILE".to_string();
|
||||
let filename = a.filename.as_ref().unwrap_or(&default);
|
||||
let host = seed::window().location().host().expect("couldn't get host");
|
||||
let url = format!("//{host}/download/attachment/{}/{}/{}", a.id,a.idx, filename);
|
||||
let url = shared::urls::download_attachment(Some(&host), &a.id, &a.idx, filename);
|
||||
let mut fmtr = Formatter::new();
|
||||
fmtr.with_separator(" ");
|
||||
fmtr.with_scales(Scales::Binary());
|
||||
|
||||
Reference in New Issue
Block a user