diff --git a/src/main.rs b/src/main.rs index a9704c3..51246c5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,6 +39,7 @@ async fn main() -> std::io::Result<()> { App::new() .app_data(handlebars_ref.clone()) .wrap(middleware::Logger::default()) + .service(routes::help::get) .service(routes::index::get) .service(routes::submit::get) .service(routes::submit::post) diff --git a/src/routes/help.rs b/src/routes/help.rs new file mode 100644 index 0000000..44ad13e --- /dev/null +++ b/src/routes/help.rs @@ -0,0 +1,11 @@ +use actix_web::{get, web, HttpResponse}; +use handlebars::Handlebars; +use serde_json::json; + +#[get("/help")] +pub async fn get(hb: web::Data>) -> HttpResponse { + let data = json!({}); + let body = hb.render("help", &data).unwrap(); + + HttpResponse::Ok().body(body) +} diff --git a/src/routes/mod.rs b/src/routes/mod.rs index 7f58521..1f42d84 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -1,2 +1,3 @@ +pub mod help; pub mod index; pub mod submit; diff --git a/templates/help.html b/templates/help.html new file mode 100644 index 0000000..7781a3c --- /dev/null +++ b/templates/help.html @@ -0,0 +1,85 @@ + + + + + + ReWoT + + + + + + +
+

ReWoT

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + +
+ + + + + x1 +
+ # + + +
+
+ +
+ +

Help

+ +

ReWoT is a mud log replaying kind of thing. + +

Clients supported are Mudlet, TinTin++, and ZMud (may also work with CMud, I'm not sure). + + +

+ + + + diff --git a/templates/submit.html b/templates/submit.html index 99fced0..f0c2036 100644 --- a/templates/submit.html +++ b/templates/submit.html @@ -73,6 +73,11 @@

Submit a log

+ Client
Title
Player
Public