about summary refs log tree commit diff stats
path: root/crates/rocie-server/src/api/get/auth/mod.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 13:07:14 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 13:07:14 +0100
commitc91dce4f77ae12453203f0a28b91efb6533cc095 (patch)
tree4f50e755dff7f717d45309b08f9fe2c8c87f88bd /crates/rocie-server/src/api/get/auth/mod.rs
parentchore(rocie-client): Regenerate (diff)
downloadserver-c91dce4f77ae12453203f0a28b91efb6533cc095.zip
feat(rocie-server): Implement basic user handling and authentication
Diffstat (limited to 'crates/rocie-server/src/api/get/auth/mod.rs')
-rw-r--r--crates/rocie-server/src/api/get/auth/mod.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/crates/rocie-server/src/api/get/auth/mod.rs b/crates/rocie-server/src/api/get/auth/mod.rs
new file mode 100644
index 0000000..c51f6a7
--- /dev/null
+++ b/crates/rocie-server/src/api/get/auth/mod.rs
@@ -0,0 +1,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);
+}