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

+
+ + + + + + + +
+
+
+ + + +
+ + + +