diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-03 11:42:32 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-03 11:42:32 -0500 |
commit | 429da306ee70a21169220dd365bf77886dc86dcb (patch) | |
tree | ed9912c5dab9bf10091d7adef10c15961b5d5aef /src/public/file.rs | |
parent | api docs (diff) | |
download | xssbook-429da306ee70a21169220dd365bf77886dc86dcb.tar.gz xssbook-429da306ee70a21169220dd365bf77886dc86dcb.tar.bz2 xssbook-429da306ee70a21169220dd365bf77886dc86dcb.zip |
favicon fix / readme
Diffstat (limited to '')
-rw-r--r-- | src/public/file.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/public/file.rs b/src/public/file.rs index 7c118a6..88b45b8 100644 --- a/src/public/file.rs +++ b/src/public/file.rs @@ -27,6 +27,10 @@ pub async fn image(Path(path): Path<String>) -> Response { super::serve(&path).await } +pub async fn favicon() -> Response { + super::serve("/favicon.ico").await +} + #[derive(Deserialize)] pub struct AvatarRequest { user_id: u64, |