From 0972fa6eab8c9111311f082ba8abfdc6b4a40945 Mon Sep 17 00:00:00 2001 From: nil Date: Wed, 2 Oct 2024 17:48:56 +0200 Subject: commit changes --- src/routes/hello.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/routes/hello.rs (limited to 'src/routes') diff --git a/src/routes/hello.rs b/src/routes/hello.rs new file mode 100644 index 0000000..c356081 --- /dev/null +++ b/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