pub mod ctl;
use cargo_metadata::cargo_platform::Ident;
pub use ctl::*;
pub mod route_container;
pub use route_container::*;
pub mod route_factroy;
pub use route_factroy::*;
fn ident_to_string(ident: &Ident) -> String {
webdto::reg_route("", "", "", "");
ident.to_string()
}
pub mod route_container_init;
use crate::ruweb::webdto;
pub use route_container_init::*;
#[macro_export]
macro_rules! reg_route {
($name:ident, $path:expr,$method:ident, $handler:expr) => {
fn $name(cfg: &mut web::ServiceConfig) {
cfg.route($path, web::$method().to($handler));
}
webrouter::register_route($name, $path);
webdto::reg_route(
stringify!($name), $path, stringify!($method), stringify!($handler), );
};
}
mod route_container_test;