Add sweet new live sync homepage

This commit is contained in:
Lucien Greathouse
2019-01-28 18:30:42 -08:00
parent aeb18eb124
commit aa243d1b8a
3 changed files with 58 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ use crate::{
rbx_session::{MetadataPerInstance},
};
static HOME_CONTENT: &str = include_str!("../assets/index.html");
/// Contains the instance metadata relevant to Rojo clients.
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
@@ -132,7 +134,7 @@ impl Server {
}
fn handle_home(&self) -> Response {
Response::text("Rojo is up and running!")
Response::html(HOME_CONTENT)
}
/// Get a summary of information about the server