ruwebframe 0.1.8

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation

use crate::rudi::difactroy::find_bean_di_factroy;
use crate::ruweb::webdto;
use crate::ruweb::webdto::{WebRoute, find_bean_web_route_list};
use crate::ruweb::webdto::web_route_list::WebRouteList;

#[test]
fn test_01_webroutemake_di() {
    find_bean_di_factroy().unwrap().lock().unwrap().make_di();
}
#[test]
fn test_02_webroutemake_di() {
    ;
    let mut  list = find_bean_web_route_list().unwrap();

    WebRouteList::push(&mut list, WebRoute::default());
     println!("{:#?}", list);
}
 

pub fn reg(name: &str , path : &str, method: &str, handler: &str) {

    let mut  list = find_bean_web_route_list().unwrap();
    let mut w=WebRoute::default();
    w.name=name.to_string();
    w.path=path.to_string();
    w.method=method.to_string();
    w.handler=handler.to_string();
    WebRouteList::push(&mut list, w);
     
}