Add hive to main join!().

This commit is contained in:
Paul Makles
2020-12-29 23:25:52 +00:00
parent c704f13d72
commit af56f5e2d8
6 changed files with 78 additions and 23 deletions

View File

@@ -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())

View File

@@ -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
})
}