From db58cb58b5d5612ec2aa347d0f8531b26ab2e7f3 Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Fri, 27 Sep 2024 14:04:23 +0200 Subject: upload changes --- rust/src/routes/hello.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 rust/src/routes/hello.rs (limited to 'rust/src/routes/hello.rs') diff --git a/rust/src/routes/hello.rs b/rust/src/routes/hello.rs new file mode 100644 index 0000000..c356081 --- /dev/null +++ b/rust/src/routes/hello.rs @@ -0,0 +1,11 @@ +use crate::AppState; +use actix_web::{get, web, HttpResponse}; +use serde::Deserialize; + +#[get("/hello")] +pub async fn hello_actix(app_state: web::Data) -> HttpResponse { + struct Song { + } + + return HttpResponse::Ok().json(databases); +} -- cgit v1.2.3