use actix_web::{web, HttpResponse, Responder};
use crate::rubase::ruresult;
use crate::rulog::rulog;
pub async fn manual_hello() -> impl Responder {
rulog::info("manual_hello there" );
HttpResponse::Ok().body("manual_hello there!")
}
pub async fn home() -> impl Responder {
rulog::info2("home",ruresult::find_bean_ruresult().unwrap() );
HttpResponse::Ok().content_type("application/json; charset=utf-8")
.json( ruresult::find_bean_ruresult().unwrap() )
}
pub fn config_routes(cfg: &mut web::ServiceConfig) {
cfg.route("/hey", web::get().to(manual_hello));
}