Change get articles to read from database instead of dummy data.
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ pub fn feed_factory(app: &mut web::ServiceConfig) {
|
||||
backend: true,
|
||||
};
|
||||
app.route(
|
||||
&base_path.define(String::from("/get")),
|
||||
&base_path.define(String::from("/get/{user_id}")),
|
||||
web::get().to(get::get),
|
||||
);
|
||||
app.route(
|
||||
|
||||
Reference in New Issue
Block a user