Fix sse and ws examples (#429)

* Fix sse example

* Fix websockets example
This commit is contained in:
David Pedersen
2021-10-27 15:52:41 +00:00
committed by GitHub
parent a3822cb175
commit 2d1635a6d7
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -33,8 +33,7 @@ async fn main() {
// build our application with some routes
let app = Router::new()
.nest(
"/",
.fallback(
service::get(
ServeDir::new("examples/websockets/assets").append_index_html_on_directories(true),
)