You've already forked pages
forked from didirus/AstralRinth
* Update some Labrinth dependencies * Update some Labrinth dependencies * Update some Labrinth dependencies * Update zip in Labrinth * Update itertools in Labrinth * Update validator in labrinth * Update thiserror in labrinth * Update rust_decimal, redis, and deadpool-redis in labrinth * Update totp-rs and spdx in labrinth * Update maxminddb and tar in labrinth * Update sentry and sentry-actix in labrinth * Update image in labrinth * Update lettre in labrinth * Update derive-new and rust_iso3166 in labrinth * Update async-stripe and json-patch in labrinth * Update clap and iana-time-zone in labrinth * Update labrinth to Rust 2024 * Cargo fmt * Just do a full cargo update * Update daedelus to Rust 2024 * Update daedelus_client to Rust 2024 * Set the formatting edition to 2024 * Fix formatting IntelliJ messed up my formatting
21 lines
549 B
Rust
21 lines
549 B
Rust
use actix_web::{HttpResponse, get};
|
|
use serde_json::json;
|
|
|
|
#[get("/")]
|
|
pub async fn index_get() -> HttpResponse {
|
|
let data = json!({
|
|
"name": "modrinth-labrinth",
|
|
"version": env!("CARGO_PKG_VERSION"),
|
|
"documentation": "https://docs.modrinth.com",
|
|
"about": "Welcome traveler!",
|
|
|
|
"build_info": {
|
|
"comp_date": env!("COMPILATION_DATE"),
|
|
"git_hash": env!("GIT_HASH", "unknown"),
|
|
"profile": env!("COMPILATION_PROFILE"),
|
|
}
|
|
});
|
|
|
|
HttpResponse::Ok().json(data)
|
|
}
|