mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 21:47:02 +00:00
Add hive to main join!().
This commit is contained in:
@@ -10,7 +10,7 @@ mod channels;
|
||||
|
||||
pub fn mount(rocket: Rocket) -> Rocket {
|
||||
rocket
|
||||
.mount("/", routes![root::root, root::teapot])
|
||||
.mount("/", routes![root::root])
|
||||
.mount("/onboard", onboard::routes())
|
||||
.mount("/users", users::routes())
|
||||
.mount("/channels", channels::routes())
|
||||
|
||||
@@ -3,7 +3,6 @@ use crate::util::variables::{DISABLE_REGISTRATION, HCAPTCHA_SITEKEY, USE_EMAIL,
|
||||
use rocket_contrib::json::JsonValue;
|
||||
use mongodb::bson::doc;
|
||||
|
||||
/// root
|
||||
#[get("/")]
|
||||
pub async fn root() -> JsonValue {
|
||||
json!({
|
||||
@@ -18,12 +17,3 @@ pub async fn root() -> JsonValue {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/// I'm a teapot.
|
||||
#[delete("/")]
|
||||
pub async fn teapot() -> JsonValue {
|
||||
json!({
|
||||
"teapot": true,
|
||||
"can_delete": false
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user