mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-06 00:00:17 +02:00
Remove bitflags crate dependency (#2073)
Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
co-authored by
David Pedersen
parent
8cb11e7f94
commit
b80d126137
@@ -109,7 +109,10 @@ where
|
||||
T: 'static,
|
||||
{
|
||||
let path = self.show_update_destroy_path();
|
||||
self.route(&path, on(MethodFilter::PUT | MethodFilter::PATCH, handler))
|
||||
self.route(
|
||||
&path,
|
||||
on(MethodFilter::PUT.or(MethodFilter::PATCH), handler),
|
||||
)
|
||||
}
|
||||
|
||||
/// Add a handler at `DELETE /{resource_name}/:{resource_name}_id`.
|
||||
|
||||
Reference in New Issue
Block a user