test-nginx
All checks were successful
deploy / deploy (push) Successful in 1m8s

This commit is contained in:
2024-10-02 18:29:08 +03:00
parent 091df60af4
commit 01b560085e
2 changed files with 15 additions and 11 deletions

View File

@@ -28,9 +28,8 @@ async fn main() -> std::io::Result<()> {
App::new()
.app_data(web::Data::new(app_state.clone()))
.wrap(Logger::default())
.route("/", web::get().to(|| async { HttpResponse::Ok().body("ok") }))
.route("/{path:.*}", web::get().to(proxy_handler))
.route("/", web::post().to(upload_handler))
.route("/{path:.*}", web::get().to(proxy_handler))
})
.bind("127.0.0.1:8080")?
.run()