add routes to mark a post as read or unread

This commit is contained in:
glyph 2022-07-07 09:04:33 +01:00
parent 5f115617ef
commit e5f784abf9
1 changed files with 9 additions and 1 deletions

View File

@ -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())