You've already forked AstralRinth
forked from didirus/AstralRinth
* Backblaze Driver * Update action to work with new tests * Fix minor issues * Run Formatter + Switch to reqwest json parser
16 lines
386 B
Rust
16 lines
386 B
Rust
use actix_web::{get, HttpResponse};
|
|
use serde_json::json;
|
|
|
|
#[get("/")]
|
|
pub async fn index_get() -> HttpResponse {
|
|
let data = json!({
|
|
"name": "modrinth-labrinth",
|
|
"version": env!("CARGO_PKG_VERSION"),
|
|
//TODO: Add the documentation link
|
|
"documentation": "Nowhere yet",
|
|
"about": "Welcome traveler !"
|
|
});
|
|
|
|
HttpResponse::Ok().json(data)
|
|
}
|