diff options
Diffstat (limited to 'src/routes')
-rw-r--r-- | src/routes/hello.rs | 11 |
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); +} |