added feeds
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user