diff options
author | Vika <vika@fireburn.ru> | 2023-06-22 20:21:33 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-06-22 20:23:11 +0300 |
commit | 0285e630f3cae1ee2df2c7c465998b1ce669944f (patch) | |
tree | cb42c775a2b24923795cdb047d4fce8cc9918ac3 /kittybox-rs/src/indieauth | |
parent | d9a4fcd939974299322586c0beed1de7505d8d3d (diff) | |
download | kittybox-0285e630f3cae1ee2df2c7c465998b1ce669944f.tar.zst |
main: refactor Kittybox construction
This allows proper separation of backend initialization and Kittybox construction code. Some boilerplate is still present, but there's much less of it now thanks to functions being generic.
Diffstat (limited to 'kittybox-rs/src/indieauth')
-rw-r--r-- | kittybox-rs/src/indieauth/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kittybox-rs/src/indieauth/mod.rs b/kittybox-rs/src/indieauth/mod.rs index cf3278a..a86100d 100644 --- a/kittybox-rs/src/indieauth/mod.rs +++ b/kittybox-rs/src/indieauth/mod.rs @@ -789,6 +789,7 @@ async fn userinfo_endpoint_get<A: AuthBackend, D: Storage + 'static>( } } +#[must_use] pub fn router<A: AuthBackend, D: Storage + 'static>(backend: A, db: D, http: reqwest::Client) -> axum::Router { use axum::routing::{Router, get, post}; |