add favicon

This commit is contained in:
April John 2025-02-03 14:15:19 +01:00
parent c47575eb8d
commit 14e4402e7a
4 changed files with 42 additions and 0 deletions

View file

@ -132,6 +132,11 @@ async fn post_manually(
Ok(HttpResponse::Ok().json(Response { health: true }))
}
#[get("/favicon")]
async fn favicon() -> actix_web::Result<actix_files::NamedFile> {
Ok(actix_files::NamedFile::open("static/favicon.ico")?)
}
#[get("/test/follow/{user}")]
async fn follow_manually(
path: web::Path<String>,