-
Currently, the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I can see this being dangerous to allow in the general case. You can imagine a scenario where a developer thinks this is just for GETs and then deploying an app where it's problematic to receive a POST. I think safer to push people towards the existing solutions, either:
|
Beta Was this translation helpful? Give feedback.
I can see this being dangerous to allow in the general case. You can imagine a scenario where a developer thinks this is just for GETs and then deploying an app where it's problematic to receive a POST.
I think safer to push people towards the existing solutions, either:
#[route("/", method = GET, method = POST, ...)]
;.route("/", web::route().to(handler))
or a resource with.default_service(handler)
configured achieves it for arbitrary methods, too.