From c90efc39fb626f378c7b0d9f6e45c801041124dd Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 17 May 2023 02:28:39 -0700 Subject: feat(router): global cache pre-route --- src/modules/api/sydney.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/api') diff --git a/src/modules/api/sydney.rs b/src/modules/api/sydney.rs index 6125e59..f2b7e99 100644 --- a/src/modules/api/sydney.rs +++ b/src/modules/api/sydney.rs @@ -26,7 +26,7 @@ pub fn module(router: &mut windmark::router::Router) { router, "/api/sydney/version", "Sydney's version", - move |context| { + move |_context| { async move { let mut content = "0.0.0".to_string(); @@ -52,8 +52,6 @@ pub fn module(router: &mut windmark::router::Router) { } } - crate::route::cache(&context, &content); - windmark::response::Response::success(content) .with_mime("text/plain") .clone() -- cgit v1.2.3