initial commit
This commit is contained in:
commit
2a9f427bc7
21 changed files with 3692 additions and 0 deletions
11
src/routes.rs
Normal file
11
src/routes.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use axum::{body::Body, routing::get, Router};
|
||||
|
||||
use crate::{app::AppState, feeds};
|
||||
|
||||
pub fn all() -> Router<Arc<AppState>, Body> {
|
||||
Router::new()
|
||||
.route("/", get(feeds::route::feeds))
|
||||
.route("/feeds/:id", get(feeds::route::feed))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue