about summary refs log tree commit diff stats
path: root/crates/rocie-server/src/api/get/auth/mod.rs
blob: c51f6a72bf912e583e94fb3059087291654f38a1 (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
30
31
32
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) mod user;

pub(crate) fn register_paths(cfg: &mut web::ServiceConfig) {
    cfg.service(inventory::amount_by_id)
        .service(product::product_by_id)
        .service(product::product_by_name)
        .service(product::product_suggestion_by_name)
        .service(product::products_by_product_parent_id_direct)
        .service(product::products_by_product_parent_id_indirect)
        .service(product::products_in_storage)
        .service(product::products_registered)
        .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::unit_by_id)
        .service(unit::units)
        .service(unit::units_by_property_id)
        .service(unit_property::unit_properties)
        .service(unit_property::unit_property_by_id)
        .service(user::users)
        .service(user::user_by_id);
}