From 0285e630f3cae1ee2df2c7c465998b1ce669944f Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 22 Jun 2023 20:21:33 +0300 Subject: 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. --- kittybox-rs/src/indieauth/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'kittybox-rs/src/indieauth') 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( } } +#[must_use] pub fn router(backend: A, db: D, http: reqwest::Client) -> axum::Router { use axum::routing::{Router, get, post}; -- cgit 1.4.1