2 ms·
A few comments: * missing `use rocket_contrib::json::Json` * `unwrap_or` is better than `or` followed by `unwrap` * the psutil crate already has hostname inf
by baby 7y ago
A few comments:
* missing `use rocket_contrib::json::Json`
* `unwrap_or` is better than `or` followed by `unwrap`
* the psutil crate already has hostname info
* the psutil crate doesn't provide an uptime function if you're on a unix system.
* once you setup the hostinfo route, your example says to curl the index
* your docker link is broken