Skip to content

Commit

Permalink
add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
CutestNekoAqua committed Feb 3, 2025
1 parent c47575e commit 14e4402
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ base64-url = "3.0.0"
webfinger = "0.5.1"
regex = "1.10.6"
once_cell = "1.19.0"
actix-files = "0.6.6"

[dependencies.sea-orm]
version = "0.12.0"
Expand Down
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
Binary file added static/favicon.ico
Binary file not shown.

0 comments on commit 14e4402

Please sign in to comment.