mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 17:07:01 +02:00
simplify application prefix impl
This commit is contained in:
@@ -304,7 +304,7 @@ impl<S: 'static> RouteHandler<S> for Scope<S> {
|
||||
let tail = req.match_info().tail as usize;
|
||||
|
||||
// recognize resources
|
||||
let info = self.router.match_with_params(req, req.state(), tail, false);
|
||||
let info = self.router.recognize(req, req.state(), tail);
|
||||
let req2 = req.with_route_info(info);
|
||||
if self.middlewares.is_empty() {
|
||||
self.router.handle(&req2)
|
||||
|
Reference in New Issue
Block a user