diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-17 12:42:23 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-17 12:42:23 +0200 |
commit | 8c4a1a09c0098d95c868147ec23c35ebcd4cd7c2 (patch) | |
tree | eb09621222e5e79df6e891af09ce15df7c517208 | |
parent | eea75ddafc8f0b55d38b9cfbef1083ffdd3252fe (diff) | |
download | metamuffin-website-8c4a1a09c0098d95c868147ec23c35ebcd4cd7c2.tar metamuffin-website-8c4a1a09c0098d95c868147ec23c35ebcd4cd7c2.tar.bz2 metamuffin-website-8c4a1a09c0098d95c868147ec23c35ebcd4cd7c2.tar.zst |
flathub verfication
-rw-r--r-- | src/main.rs | 1 | ||||
-rw-r--r-- | src/wellknown.rs | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index c3ec938..b380491 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,6 +50,7 @@ async fn main() { r_wellknown_security, r_wellknown_matrix_server, r_wellknown_matrix_client, + r_wellknown_flathub_verified, ], ) .register("/", catchers![r_catch]) diff --git a/src/wellknown.rs b/src/wellknown.rs index c61f52f..ee800c2 100644 --- a/src/wellknown.rs +++ b/src/wellknown.rs @@ -33,3 +33,8 @@ pub fn r_wellknown_matrix_server() -> Cors<Value> { pub fn r_wellknown_security() -> &'static str { include_str!("../assets/security.txt.asc") } + +#[get("/.well-known/org.flathub.VerifiedApps.txt")] +pub fn r_wellknown_flathub_verified() -> &'static str { + "a29f43db-bd4e-40cb-b121-2899c4d70634\n" +} |