From e5f784abf9781a1b062e14a5d32da07be40299ba Mon Sep 17 00:00:00 2001 From: glyph Date: Thu, 7 Jul 2022 09:04:33 +0100 Subject: [PATCH] add routes to mark a post as read or unread --- src/main.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 124996f..00b03d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,15 @@ async fn rocket() -> _ { .manage(tx) .mount( "/", - routes![home, subscribe_form, unsubscribe_form, posts, post], + routes![ + home, + subscribe_form, + unsubscribe_form, + posts, + post, + mark_post_read, + mark_post_unread + ], ) .mount("/", FileServer::from(relative!("static"))) .attach(Template::fairing())