about summary refs log tree commit diff stats
path: root/crates/rocie-server/src/api/get/mod.rs
blob: 1c3210545b08abba59e8f2a188aaabd7a5a6c57c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use actix_web::web;

pub(crate) mod inventory;
pub(crate) mod product;
pub(crate) mod unit;
pub(crate) mod unit_property;

pub(crate) fn register_paths(cfg: &mut web::ServiceConfig) {
    cfg.service(product::product_by_id)
        .service(product::product_by_name)
        .service(product::product_suggestion_by_name)
        .service(product::products)
        .service(unit::units)
        .service(unit::unit_by_id)
        .service(unit_property::unit_properties)
        .service(unit_property::unit_property_by_id)
        .service(inventory::amount_by_id);
}