add routes to mark a post as read or unread
This commit is contained in:
parent
5f115617ef
commit
e5f784abf9
10
src/main.rs
10
src/main.rs
|
@ -43,7 +43,15 @@ async fn rocket() -> _ {
|
||||||
.manage(tx)
|
.manage(tx)
|
||||||
.mount(
|
.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")))
|
.mount("/", FileServer::from(relative!("static")))
|
||||||
.attach(Template::fairing())
|
.attach(Template::fairing())
|
||||||
|
|
Loading…
Reference in New Issue