summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-17 12:42:23 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-17 12:42:23 +0200
commit8c4a1a09c0098d95c868147ec23c35ebcd4cd7c2 (patch)
treeeb09621222e5e79df6e891af09ce15df7c517208
parenteea75ddafc8f0b55d38b9cfbef1083ffdd3252fe (diff)
downloadmetamuffin-website-8c4a1a09c0098d95c868147ec23c35ebcd4cd7c2.tar
metamuffin-website-8c4a1a09c0098d95c868147ec23c35ebcd4cd7c2.tar.bz2
metamuffin-website-8c4a1a09c0098d95c868147ec23c35ebcd4cd7c2.tar.zst
flathub verfication
-rw-r--r--src/main.rs1
-rw-r--r--src/wellknown.rs5
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"
+}