mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-16 21:40:50 +01:00
Add message to unsupported HTTP method panic
This commit is contained in:
parent
7bf538f549
commit
77a87881c9
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ impl RouterExt for Router {
|
||||||
Method::POST => MethodFilter::POST,
|
Method::POST => MethodFilter::POST,
|
||||||
Method::PUT => MethodFilter::PUT,
|
Method::PUT => MethodFilter::PUT,
|
||||||
Method::TRACE => MethodFilter::TRACE,
|
Method::TRACE => MethodFilter::TRACE,
|
||||||
_ => panic!(""),
|
m => panic!("Unsupported HTTP method: {:?}", m),
|
||||||
};
|
};
|
||||||
|
|
||||||
self.route(meta.path, on(method_filter, handler))
|
self.route(meta.path, on(method_filter, handler))
|
||||||
|
|
Loading…
Reference in a new issue