removed unsed struct which was moved to website.rs anyway

This commit is contained in:
shockrah 2020-01-04 01:35:56 -08:00
parent 52f66c00b0
commit 6c88b04d6a

View File

@ -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())
}