1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-05-21 11:03:55 +00:00

Change path for served images to avoid collision with vault images

This commit is contained in:
Daniel García 2019-05-01 16:19:22 +02:00
parent 3160780549
commit 5521a86693
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
6 changed files with 11 additions and 11 deletions

View file

@ -64,7 +64,7 @@ fn alive() -> Json<String> {
Json(format_date(&Utc::now().naive_utc()))
}
#[get("/images/<filename>")]
#[get("/bwrs_images/<filename>")]
fn images(filename: String) -> Result<Content<Vec<u8>>, Error> {
let image_type = ContentType::new("image", "png");
match filename.as_ref() {