From: Felix Ableitner Date: Sat, 23 Nov 2019 22:19:29 +0000 (+0100) Subject: wip X-Git-Url: http://these/git/%22https:/nerdica.net/%7B%24%7B%60data:application/static/%24%7B%60data:application/%7BdocsUrl%7D?a=commitdiff_plain;h=f47bdbc37ad2c9afd70fb84a8bb291604fd4a832;p=lemmy.git wip --- diff --git a/server/src/feeds.rs b/server/src/feeds.rs index 8e89e39b..bf5b802f 100644 --- a/server/src/feeds.rs +++ b/server/src/feeds.rs @@ -15,7 +15,6 @@ use diesel::result::Error; use std::str::FromStr; use self::rss::Guid; - pub fn get_feed(path: web::Path<(char, String)>, req: HttpRequest) -> HttpResponse { let sort_query = match req.match_info().query("sort").parse() { Ok(param) => param, diff --git a/server/src/main.rs b/server/src/main.rs index ecda777e..6d1bf3c9 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -207,6 +207,9 @@ fn main() { web::get().to(nodeinfo::node_info_well_known), ) .route("/feeds/{type}/{name}.xml", web::get().to(feeds::get_feed)) + // TODO: probably need a different function for this (or just handle all of /feeds? + // TODO: would be nice to use ListingType, but that doesnt include user + .route("/feeds/all.xml", web::get().to(feeds::get_feed)) // static resources .service(actix_files::Files::new("/static", front_end_dir())) })