Add message to unsupported HTTP method panic

merge-requests/263/head
Jonas Platte 2 years ago
parent 7bf538f549
commit 77a87881c9
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

@ -363,7 +363,7 @@ impl RouterExt for Router {
Method::POST => MethodFilter::POST,
Method::PUT => MethodFilter::PUT,
Method::TRACE => MethodFilter::TRACE,
_ => panic!(""),
m => panic!("Unsupported HTTP method: {:?}", m),
};
self.route(meta.path, on(method_filter, handler))

Loading…
Cancel
Save