[WIP] A simple wake-on-lan service
1use std::time::Instant;
2
3use axum::extract::Request;
4
5pub async fn main(req: Request, next: axum::middleware::Next) -> axum::response::Response {
6 let start = Instant::now();
7 let method = req.method().to_string();
8 let uri = req.uri().to_string();
9 let res = next.run(req).await;
10
11 println!("({:?}) [{}] {}", start.elapsed(), method, uri);
12 res
13}