From 40419d5e9f4bc6550120d5b3a0f980711bcd7459 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Tue, 30 Apr 2024 02:58:29 -0400 Subject: [PATCH] multiple test clients --- spawnclients.html | 16 ++++++++++++++++ src/main.rs | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 spawnclients.html diff --git a/spawnclients.html b/spawnclients.html new file mode 100644 index 0000000..e60f27c --- /dev/null +++ b/spawnclients.html @@ -0,0 +1,16 @@ + + + + Cards For Humanity Test Clients + + + + + + + + + + + + diff --git a/src/main.rs b/src/main.rs index 48bfab0..8eb3861 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,6 +119,7 @@ async fn main() -> Result<(), Box> { let app = Router::new() .route("/", get(index)) + .route("/test", get(spawnclients)) .route("/websocket", get(websocket_handler)) .with_state(app_state); @@ -133,3 +134,7 @@ async fn main() -> Result<(), Box> { async fn index() -> Html<&'static str> { Html(std::include_str!("../test_client.html")) } + +async fn spawnclients() -> Html<&'static str> { + Html(std::include_str!("../spawnclients.html")) +}