forked from jmug/stoatchat
Better error handling for all routes.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
use super::Response;
|
||||
|
||||
use bson::doc;
|
||||
use rocket_contrib::json::JsonValue;
|
||||
|
||||
/// root
|
||||
#[get("/")]
|
||||
pub fn root() -> JsonValue {
|
||||
json!({
|
||||
pub fn root() -> Response {
|
||||
Response::Success(json!({
|
||||
"revolt": "0.0.1"
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user