aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-07-07 21:17:01 -0400
committerChristine Dodrill <me@christine.website>2021-07-07 21:17:46 -0400
commit7dfdd131e4346bdfda6a709e9de0c1e543d8554e (patch)
treee7c216b2e77d007691f9a6126ed95867334b83f2 /src/main.rs
parent0019b0a4e9d48e4c8f660fc25a94af0deacf99e3 (diff)
downloadxesite-7dfdd131e4346bdfda6a709e9de0c1e543d8554e.tar.xz
xesite-7dfdd131e4346bdfda6a709e9de0c1e543d8554e.zip
closer integration into android, read estimates
Signed-off-by: Christine Dodrill <me@christine.website>
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))