summaryrefslogtreecommitdiff
path: root/src/routes/hello.rs
diff options
context:
space:
mode:
authornil <nil@tfwhyno.gf>2024-10-02 17:48:56 +0200
committernil <nil@tfwhyno.gf>2024-10-02 17:48:56 +0200
commit0972fa6eab8c9111311f082ba8abfdc6b4a40945 (patch)
tree4eedbdc1a7cfdeee9d651c9871a9f26ab6da56d4 /src/routes/hello.rs
parent012c2c03b29a987ca4eead023ded22e01aa7477b (diff)
commit changes
Diffstat (limited to 'src/routes/hello.rs')
-rw-r--r--src/routes/hello.rs11
1 files changed, 11 insertions, 0 deletions
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<AppState>) -> HttpResponse {
+ struct Song {
+ }
+
+ return HttpResponse::Ok().json(databases);
+}