use actix_web::web; pub(crate) mod barcode; pub(crate) mod product; pub(crate) mod unit; pub(crate) fn register_paths(cfg: &mut web::ServiceConfig) { cfg.service(product::register_product) .service(product::associate_barcode) .service(unit::register_unit) .service(barcode::consume_barcode) .service(barcode::buy_barcode); }