aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0576f97..bbe5658 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -142,6 +142,8 @@ async fn main() -> Result<()> {
let sitemap = warp::path("sitemap.xml")
.and(with_state(state.clone()))
.and_then(handlers::feeds::sitemap);
+ let asset_links = warp::path!(".well-known" / "assetlinks.json")
+ .and(warp::fs::file("./static/assetlinks.json"));
let go_vanity_jsonfeed = warp::path("jsonfeed")
.and(warp::any().map(move || "christine.website/jsonfeed"))
@@ -162,7 +164,7 @@ async fn main() -> Result<()> {
});
let static_pages = index
- .or(feeds)
+ .or(feeds.or(asset_links))
.or(resume.or(signalboost))
.or(patrons)
.or(jsonfeed.or(atom.or(sitemap)).or(rss))