Files
AstralRinth/src/routes/index.rs
Johan Novak 07226c6d21 Fix Docs Link (#233)
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
2021-08-14 12:39:06 -07:00

15 lines
356 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://docs.modrinth.com",
"about": "Welcome traveler!"
});
HttpResponse::Ok().json(data)
}