This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user