You've already forked AstralRinth
forked from didirus/AstralRinth
Co-authored-by: 0SoggyMustache0 <george@georgekazan.dev> Co-authored-by: 0SoggyMustache0 <george@georgekazan.dev> Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
14 lines
364 B
Rust
14 lines
364 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)
|
|
} |