diff options
| author | Fuwn <[email protected]> | 2023-05-17 02:28:39 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-17 02:28:39 -0700 |
| commit | c90efc39fb626f378c7b0d9f6e45c801041124dd (patch) | |
| tree | 71dd0a5e518624c42a777fda32210cd65ebe437b /src/modules/api | |
| parent | fix(route): fill for root path (diff) | |
| download | locus-c90efc39fb626f378c7b0d9f6e45c801041124dd.tar.xz locus-c90efc39fb626f378c7b0d9f6e45c801041124dd.zip | |
feat(router): global cache pre-route
Diffstat (limited to 'src/modules/api')
| -rw-r--r-- | src/modules/api/sydney.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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() |