]> Untitled Git - lemmy.git/commitdiff
wip
authorFelix Ableitner <me@nutomic.com>
Sat, 23 Nov 2019 22:19:29 +0000 (23:19 +0100)
committerFelix Ableitner <me@nutomic.com>
Sat, 23 Nov 2019 22:25:59 +0000 (23:25 +0100)
server/src/feeds.rs
server/src/main.rs

index 8e89e39b629f4d848e07840df5b9f059b13a376c..bf5b802ff853b7f13aed405f153841e0e4199fa0 100644 (file)
@@ -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<Body> {
   let sort_query = match req.match_info().query("sort").parse()  {
     Ok(param) => param,
index ecda777e55d34b4c4fd0350832cdbbe665b10d3b..6d1bf3c9297af4373ff7a79a9be50dac912c92f5 100644 (file)
@@ -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()))
   })