MethodNotAllowed for rust cloudevents template (#639)

This commit is contained in:
Shashank Sharma 2021-11-09 01:02:42 +05:30 committed by GitHub
parent c810efc7a4
commit dc0f0c1289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -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),