ruwebframe 0.1.5

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
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));
}