From a7ab4799af3f968ce99794c9483dddb4146ada6f Mon Sep 17 00:00:00 2001 From: Samuel Shuert Date: Mon, 29 Jun 2026 01:54:35 +0000 Subject: [PATCH] feat(backend): add temp sign in test page --- backend/src/main.rs | 8 ++ backend/src/temp.html | 232 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 240 insertions(+) create mode 100644 backend/src/temp.html diff --git a/backend/src/main.rs b/backend/src/main.rs index 48761de..38331f0 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -16,6 +16,13 @@ mod middleware; mod models; mod routes; +#[actix_web::get("/")] +async fn home() -> impl actix_web::Responder { + actix_web::HttpResponse::Ok() + .content_type("text/html; charset=utf-8") + .body(include_str!("./temp.html")) +} + #[actix_web::main] async fn main() -> std::io::Result<()> { tracing_subscriber::fmt() @@ -69,6 +76,7 @@ async fn main() -> std::io::Result<()> { .service(routes::auth::get_self) .wrap(RateLimit::new(rl_config.clone(), rl_store.clone())), ) + .service(home) }) .bind(("0.0.0.0", 5173))? .run() diff --git a/backend/src/temp.html b/backend/src/temp.html new file mode 100644 index 0000000..11c83e4 --- /dev/null +++ b/backend/src/temp.html @@ -0,0 +1,232 @@ + + + + + + Sign In + + + +
+ +
+

Sign In

+
+ + + + + + + +
+
+
+ + + +
+ + + + -- 2.51.2