the shake of all times

This commit is contained in:
lda
2026-04-03 23:50:25 +07:00 Unverified
parent 59f5a893fc
commit 3339faebfb
6 changed files with 19 additions and 23 deletions
+3 -5
View File
@@ -46,11 +46,9 @@ pub fn api_router() -> Router {
.route("/ips/{name}", get(ip))
.route(
"/mac-cache",
get(|| async {
match load_mac_name_cache().await {
Ok(h) => Json(h).into_response(),
Err(e) => e.to_string().into_response(),
}
get(async || match load_mac_name_cache().await {
Ok(h) => Json(h).into_response(),
Err(e) => e.to_string().into_response(),
}),
)
.layer(middleware::from_fn(add_performance_header))
+1
View File
@@ -110,3 +110,4 @@ pub type WakeStatus = Status<WakeStatusLine>; */
// }): Query<DeviceQuery>,
// ) -> impl IntoResponse {
// }
pub mod impls;
@@ -1,4 +1,4 @@
use super::{WakeStatus, WakeTarget, WakeTargetResult};
use crate::utils::wake::{WakeStatus, WakeTarget, WakeTargetResult};
use crate::route::wake::{
WakeTarget as RouteWakeTarget, WakeTargetResult as RouteWakeResult,
WakeTargetStatus as RouteWakeStatus,
@@ -1,6 +1,5 @@
//! why did my Head Ass split these into two.
pub mod impls;
use std::{io, net::IpAddr};
use futures::TryFutureExt;