play indoor chime on ring

This commit is contained in:
2020-10-28 20:21:26 -07:00
parent 941038eece
commit be65559f87
2 changed files with 14 additions and 2 deletions

View File

@@ -83,9 +83,15 @@ async fn main() {
})
);
sse::reply(stream)
});
});
let routes = root.or(events);
// GET /*
let statics = warp::get()
.and(warp::path::peek())
.map(|path| info!("GET /* : {:?}", path)).untuple_one()
.and(warp::fs::dir("static"));
let routes = root.or(events).or(statics);
warp::serve(routes).run(([0, 0, 0, 0], 8060)).await;
}