mirror of https://github.com/knative/func.git
MethodNotAllowed for rust cloudevents template (#639)
This commit is contained in:
parent
c810efc7a4
commit
dc0f0c1289
|
@ -19,6 +19,7 @@ async fn main() -> std::io::Result<()> {
|
|||
.wrap(actix_web::middleware::Logger::default())
|
||||
.configure(config::configure)
|
||||
.route("/", web::post().to(handler::handle))
|
||||
.route("/", web::get().to(HttpResponse::MethodNotAllowed))
|
||||
.route(
|
||||
"/health/{_:(readiness|liveness)}",
|
||||
web::get().to(HttpResponse::Ok),
|
||||
|
|
Loading…
Reference in New Issue