initial commit

This commit is contained in:
Sebastian Hugentobler 2023-11-15 16:26:35 +01:00
commit 2a9f427bc7
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
21 changed files with 3692 additions and 0 deletions

11
src/routes.rs Normal file
View 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))
}