1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

add workspace

This commit is contained in:
Nikolay Kim
2018-04-13 12:32:15 -07:00
parent 3a4a0e5b81
commit 1dea2cf3c3
38 changed files with 2494 additions and 906 deletions

View File

@ -55,7 +55,7 @@ fn main() {
// websocket route
.resource("/ws/", |r| r.method(http::Method::GET).f(ws_index))
// static files
.handler("/", fs::StaticFiles::new("../static/")
.handler("/", fs::StaticFiles::new("static/")
.index_file("index.html")))
// start http server on 127.0.0.1:8080
.bind("127.0.0.1:8080").unwrap()