ruwebframe 0.1.5

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
use crate::reg_route;
use crate::ruweb::webrouter;
use crate::ruweb::webrouter::ctl::ctl::{home, manual_hello};
use actix_web::web;
use ctor::ctor;

#[ctor(unsafe)]
pub fn register() {
    reg_route!(config_routes_health, "/health", get, home);
    reg_route!(config_routes_home, "/home", get, home);
    reg_route!(config_routes_hello, "/hello", get, manual_hello);
}