added feeds

This commit is contained in:
2023-09-17 11:54:37 +02:00
parent 018bbf3918
commit 43e5d473b7
21 changed files with 76 additions and 25 deletions
+5
View File
@@ -5,6 +5,7 @@ mod add;
pub mod feeds;
mod get;
pub mod structs;
mod sync;
pub fn feed_factory(app: &mut web::ServiceConfig) {
let base_path: Path = Path {
@@ -19,4 +20,8 @@ pub fn feed_factory(app: &mut web::ServiceConfig) {
&base_path.define(String::from("/add")),
web::post().to(add::add),
);
app.route(
&base_path.define(String::from("/sync")),
web::post().to(sync::sync),
);
}