forked from jmug/stoatchat
Ready payload on websocket, add friend by username + avatars.
This commit is contained in:
7
src/routes/users/get_avatar.rs
Normal file
7
src/routes/users/get_avatar.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
use rocket::response::NamedFile;
|
||||
use std::path::Path;
|
||||
|
||||
#[get("/<_target>/avatar")]
|
||||
pub async fn req(_target: String) -> Option<NamedFile> {
|
||||
NamedFile::open(Path::new("avatar.png")).await.ok()
|
||||
}
|
||||
Reference in New Issue
Block a user