mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Clean up web utilities
This commit is contained in:
parent
61fc19e948
commit
a5c0cfb12b
2 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ use std::time::Instant;
|
|||
use rouille;
|
||||
|
||||
use project::Project;
|
||||
use web_util::json;
|
||||
use web_util::json_response;
|
||||
|
||||
/// The set of configuration the web server needs to start.
|
||||
pub struct WebConfig {
|
||||
|
|
@ -39,7 +39,7 @@ pub fn start(config: WebConfig, project: Project, start_time: Instant) {
|
|||
elapsed.as_secs() as f64 + elapsed.subsec_nanos() as f64 / 1_000_000_000.0
|
||||
};
|
||||
|
||||
json(ServerInfo {
|
||||
json_response(ServerInfo {
|
||||
server_version: env!("CARGO_PKG_VERSION"),
|
||||
protocol_version: 1,
|
||||
server_id: &server_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue