Move versioning to source.

This commit is contained in:
Paul
2021-05-03 15:03:30 +01:00
parent fa960ebc94
commit c086fe7ac4
7 changed files with 14 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ use rocket_contrib::json::JsonValue;
#[get("/")]
pub async fn root() -> JsonValue {
json!({
"revolt": "0.4.1-alpha.4",
"revolt": crate::version::VERSION,
"features": {
"registration": !*DISABLE_REGISTRATION,
"captcha": {