about summary refs log tree commit diff stats
path: root/crates/rocie-server/src/api/get/mod.rs
blob: 487b55c031efc219bd88a39644da4b8dd1c8db31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use actix_web::web;

pub(crate) mod inventory;
pub(crate) mod product;
pub(crate) mod product_parent;
pub(crate) mod recipe;
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_registered)
        .service(product::products_in_storage)
        .service(product::products_by_product_parent_id_indirect)
        .service(product::products_by_product_parent_id_direct)
        .service(product_parent::product_parents)
        .service(product_parent::product_parents_toplevel)
        .service(product_parent::product_parents_under)
        .service(recipe::recipe_by_id)
        .service(recipe::recipes)
        .service(unit::units)
        .service(unit::units_by_property_id)
        .service(unit::unit_by_id)
        .service(unit_property::unit_properties)
        .service(unit_property::unit_property_by_id)
        .service(inventory::amount_by_id);
}