1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

update all websocket examples to v4

This commit is contained in:
Rob Ede
2022-02-18 01:44:53 +00:00
parent 1b23e3ff3d
commit 4d8573c3fe
40 changed files with 1340 additions and 1682 deletions

View File

@ -55,7 +55,7 @@ async fn main() -> io::Result<()> {
.service(web::resource("/").route(web::get().to(api::index)))
.service(web::resource("/todo").route(web::post().to(api::create)))
.service(web::resource("/todo/{id}").route(web::post().to(api::update)))
.service(Files::new("/static", "./static/"))
.service(Files::new("/static", "./static"))
})
.bind(("127.0.0.1", 8080))?
.workers(2)