You've already forked AstralRinth
forked from didirus/AstralRinth
* Lots of little fixes * Change + Add TODOs back that were incomplete * Fix migrations * Run prepare * Minor fixes * Fix formatting * SQLX Prepare
15 lines
366 B
Rust
15 lines
366 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"),
|
|
"documentation": "https://modrinth.com/documentation",
|
|
"about": "Welcome traveler !"
|
|
});
|
|
|
|
HttpResponse::Ok().json(data)
|
|
}
|