This commit is contained in:
2023-03-27 18:03:20 +02:00
parent 8b121c9e6e
commit b3061ad79a
11 changed files with 516 additions and 30 deletions
+5
View File
@@ -1,6 +1,7 @@
use actix_web::web;
use crate::views::path::Path;
mod add;
pub mod feeds;
mod get;
pub mod structs;
@@ -14,4 +15,8 @@ pub fn feed_factory(app: &mut web::ServiceConfig) {
&base_path.define(String::from("/get")),
web::get().to(get::get),
);
app.route(
&base_path.define(String::from("/add")),
web::post().to(add::add),
);
}