summaryrefslogtreecommitdiff
path: root/rust/src/routes/hello.rs
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2024-09-27 14:04:23 +0200
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2024-09-27 14:04:23 +0200
commitdb58cb58b5d5612ec2aa347d0f8531b26ab2e7f3 (patch)
tree948e96bf2eabc7694194c07e9ac19acafa760b94 /rust/src/routes/hello.rs
parent9d70bfed33df8ea4cd77f915454da265edccf401 (diff)
upload changes
Diffstat (limited to 'rust/src/routes/hello.rs')
-rw-r--r--rust/src/routes/hello.rs11
1 files changed, 11 insertions, 0 deletions
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<AppState>) -> HttpResponse {
+ struct Song {
+ }
+
+ return HttpResponse::Ok().json(databases);
+}