Remove bitflags crate dependency (#2073)

Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
Rodrigo Santiago
2023-07-05 20:08:11 +00:00
committed by GitHub
co-authored by David Pedersen
parent 8cb11e7f94
commit b80d126137
8 changed files with 81 additions and 32 deletions
+4 -1
View File
@@ -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`.