1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-30 16:40:21 +02:00

added extractor configuration

This commit is contained in:
Nikolay Kim
2018-04-03 22:06:18 -07:00
parent a255a6fb69
commit df21892b5b
10 changed files with 253 additions and 62 deletions

View File

@@ -144,7 +144,7 @@ impl<S: 'static> ResourceHandler<S> {
T: FromRequest<S> + 'static,
{
self.routes.push(Route::default());
self.routes.last_mut().unwrap().with(handler)
self.routes.last_mut().unwrap().with(handler);
}
/// Register a resource middleware