diff --git a/server/src/main.rs b/server/src/main.rs index 75098f6..d51aa26 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -12,23 +12,8 @@ use rocket_contrib::templates::Template; mod website; use website::*; -// Purely for backend purposes -#[derive(Serialize)] -struct PageAttrs { - og_title: &'static str, - og_type: &'static str, - og_desc: &'static str, - og_url: &'static str, - og_image: &'static str, - - // General settings - favicon: &'static str, // path to the favicon - - // Branding things - brand_url: &'static str, // default is freechat.io - clean url of domain - brand_motto: &'static str, - brand_quip: &'static str -} +mod chat; +use chat::*; fn rocket() -> rocket::Rocket { @@ -38,6 +23,9 @@ fn rocket() -> rocket::Rocket { homepage, about_page, server_info, static_css, static_js, static_media ]) + .mount("/api/chat/", routes![ + list + ]) .attach(Template::fairing()) }