mark read backend

This commit is contained in:
2023-10-29 17:06:19 +01:00
parent 1789458830
commit abf9a1b818
5 changed files with 53 additions and 11 deletions
+5
View File
@@ -4,6 +4,7 @@ use crate::views::path::Path;
mod add;
pub mod feeds;
mod get;
mod mark_read;
mod read;
mod scraper;
pub mod structs;
@@ -30,4 +31,8 @@ pub fn feed_factory(app: &mut web::ServiceConfig) {
&base_path.define(String::from("/read")),
actix_web::Route::to(web::post(), read::read),
);
app.route(
&base_path.define(String::from("/read/{id}")),
actix_web::Route::to(web::put(), mark_read::mark_read),
);
}