ruwebframe 0.1.7

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::reg_route;
use crate::ruweb::webrouter;
use crate::ruweb::webrouter::ctl::ctl::{cfg, health,  home, manual_hello};
use actix_web::web;
use crate::ruweb::webdto;
use ctor::ctor;


#[ctor(unsafe)]
pub fn register() {

        reg_route!(config_routes_health, "/health", get, health);
        reg_route!(config_routes_home, "/", get, home);
        reg_route!(config_routes_cfg, "/cfg", get, cfg);

}