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:
@ -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)
|
||||
|
Reference in New Issue
Block a user