Skip to content

Commit

Permalink
Add document entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Itanq committed Mar 30, 2020
1 parent 7509524 commit 8a88de2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies.actix-files]
version = "0.2.1"

[dependencies.actix-web]
version = "2.0"

Expand Down
3 changes: 3 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ pub(crate) async fn start_server() -> std::io::Result<()> {
.service(index_video_sub)
.service(index_video_url)
.service(index_weblog)
.service(
actix_files::Files::new("/", "./public/").index_file("index.html")
)
});

server.bind("localhost:8000")?.run().await
Expand Down

0 comments on commit 8a88de2

Please sign in to comment.