summary refs log tree commit diff stats
path: root/pkgs/by-name/ba/back/src/main.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-27 22:40:56 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-27 22:47:46 +0100
commit261a71a0a4ad42da84d310d86137aac3de9f843b (patch)
tree5d04ef8c9e13bee56f8152e62dd4f35c7ef24478 /pkgs/by-name/ba/back/src/main.rs
parentfeat(back/src/issues/issue): implement Display for Author (diff)
downloadnixos-server-261a71a0a4ad42da84d310d86137aac3de9f843b.zip
feat(back): add rss feed
Co-authored-by: Silas Schöffel <sils@sils.li>
Diffstat (limited to 'pkgs/by-name/ba/back/src/main.rs')
-rw-r--r--pkgs/by-name/ba/back/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/by-name/ba/back/src/main.rs b/pkgs/by-name/ba/back/src/main.rs
index b75737a..961c39b 100644
--- a/pkgs/by-name/ba/back/src/main.rs
+++ b/pkgs/by-name/ba/back/src/main.rs
@@ -14,6 +14,7 @@ use std::process;
 use clap::Parser;
 use config::BackConfig;
 use rocket::routes;
+use web::feed;
 
 use crate::web::{closed, open, show_issue, styles};
 
@@ -39,7 +40,7 @@ async fn rocket_main() -> Result<(), error::Error> {
     let config = BackConfig::from_config_file(&args.config_file)?;
 
     rocket::build()
-        .mount("/", routes![open, closed, show_issue, styles])
+        .mount("/", routes![open, closed, show_issue, styles, feed])
         .manage(config)
         .ignite()
         .await