Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal committed Nov 2, 2024
1 parent 42c1540 commit 691528d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,12 @@ impl Server {
);

self.middleware_router
.add_route(middleware_type, &endpoint_prefixed_with_method, function, None)
.add_route(
middleware_type,
&endpoint_prefixed_with_method,
function,
None,
)
.unwrap();
}

Expand Down Expand Up @@ -430,7 +435,7 @@ async fn index(
) -> impl Responder {
let mut request = Request::from_actix_request(&req, payload, &global_request_headers).await;

let route = format!("{}{}", req.method(), req.uri().path());
let route = format!("{}{}", req.method(), req.uri().path());

// Before middleware
// Global
Expand Down

0 comments on commit 691528d

Please sign in to comment.