mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Add sweet new live sync homepage
This commit is contained in:
parent
aeb18eb124
commit
aa243d1b8a
3 changed files with 58 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue