aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 3875ac0..95ad96a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -271,5 +271,28 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}),
);
+ track_mount(
+ &mut router,
+ "/remarks",
+ "Fuwn's remarks",
+ Box::new(|context| {
+ let remarks: Vec<String> =
+ serde_json::from_str(include_str!("../content/json/remarks.json"))
+ .unwrap();
+
+ success!(
+ format!(
+ "# REMARKS\n\n{}",
+ remarks
+ .into_iter()
+ .map(|r| format!("* {}", r))
+ .collect::<Vec<String>>()
+ .join("\n")
+ ),
+ context
+ )
+ }),
+ );
+
router.run().await
}