[Upd] mtp update

This commit is contained in:
Alex Emmet 2026-07-20 15:28:13 +02:00
commit 70015c4d69
9 changed files with 475 additions and 842 deletions

View file

@ -1,6 +1,7 @@
use actix_web::{HttpResponse, Responder};
use http::StatusCode;
use mtp::webserver::Http3Response;
pub async fn index_handler() -> impl Responder {
pub fn index_handler(response: Http3Response) -> Http3Response {
let documentation = r#"
Omega API Server
@ -11,7 +12,8 @@ Available Routes:
All other routes will return this documentation.
"#;
HttpResponse::Ok()
.content_type("text/plain; charset=utf-8")
response
.status(StatusCode::OK)
.header("content-type", "text/plain; charset=utf-8")
.body(documentation)
}