1 2 3 4 5 6 7 8 9 10 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); }