mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
add favicon
This commit is contained in:
parent
c47575eb8d
commit
14e4402e7a
36
Cargo.lock
generated
36
Cargo.lock
generated
|
|
@ -72,6 +72,29 @@ dependencies = [
|
|||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "actix-files"
|
||||
version = "0.6.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0773d59061dedb49a8aed04c67291b9d8cf2fe0b60130a381aab53c6dd86e9be"
|
||||
dependencies = [
|
||||
"actix-http",
|
||||
"actix-service",
|
||||
"actix-utils",
|
||||
"actix-web",
|
||||
"bitflags 2.6.0",
|
||||
"bytes",
|
||||
"derive_more",
|
||||
"futures-core",
|
||||
"http-range",
|
||||
"log",
|
||||
"mime",
|
||||
"mime_guess",
|
||||
"percent-encoding",
|
||||
"pin-project-lite",
|
||||
"v_htmlescape",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "actix-http"
|
||||
version = "3.8.0"
|
||||
|
|
@ -1579,6 +1602,12 @@ dependencies = [
|
|||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "http-range"
|
||||
version = "0.1.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "21dec9db110f5f872ed9699c3ecf50cf16f423502706ba5c72462e28d3157573"
|
||||
|
||||
[[package]]
|
||||
name = "http-signature-normalization"
|
||||
version = "0.7.0"
|
||||
|
|
@ -3872,6 +3901,12 @@ dependencies = [
|
|||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "v_htmlescape"
|
||||
version = "0.15.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4e8257fbc510f0a46eb602c10215901938b5c2a7d5e70fc11483b1d3c9b5b18c"
|
||||
|
||||
[[package]]
|
||||
name = "vcpkg"
|
||||
version = "0.2.15"
|
||||
|
|
@ -3884,6 +3919,7 @@ version = "0.1.0"
|
|||
dependencies = [
|
||||
"activitypub_federation",
|
||||
"activitystreams-kinds",
|
||||
"actix-files",
|
||||
"actix-web",
|
||||
"actix-web-prom",
|
||||
"anyhow",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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>,
|
||||
|
|
|
|||
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
Loading…
Reference in a new issue