chore: add env variables back

This commit is contained in:
Paul Makles
2022-02-04 22:17:49 +00:00
parent e367c42dca
commit 88273021a2
4 changed files with 114 additions and 9 deletions

View File

@@ -1,15 +1,14 @@
/*use crate::util::{ratelimit::Ratelimiter, variables::{
use crate::util::{/*ratelimit::Ratelimiter,*/ variables::{
APP_URL, AUTUMN_URL, EXTERNAL_WS_URL, HCAPTCHA_SITEKEY, INVITE_ONLY, JANUARY_URL, USE_AUTUMN,
USE_EMAIL, USE_HCAPTCHA, USE_JANUARY, USE_VOSO, VAPID_PUBLIC_KEY, VOSO_URL, VOSO_WS_HOST,
}};*/
}};
use mongodb::bson::doc;
use rocket::{http::Status, serde::json::Value};
#[get("/")]
pub async fn root() -> Value {
todo!();
/*json!({
json!({
"revolt": crate::version::VERSION,
"features": {
"captcha": {
@@ -35,7 +34,7 @@ pub async fn root() -> Value {
"ws": *EXTERNAL_WS_URL,
"app": *APP_URL,
"vapid": *VAPID_PUBLIC_KEY
})*/
})
}
#[get("/ping")]