Ready payload on websocket, add friend by username + avatars.

This commit is contained in:
Paul Makles
2020-12-31 14:59:26 +00:00
parent cac21ce2b6
commit 7728768539
10 changed files with 55 additions and 41 deletions

View 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()
}