summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib.rs20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b5ca65a..36210e7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -31,7 +31,7 @@ use reactive_stores::Store;
use rocie_client::apis::configuration::Configuration;
use crate::pages::{
- buy::Buy, home::Home, inventory::Inventory, not_found::NotFound, recipies::Recipies,
+ associate_barcode::AssociateBarcode, buy::Buy, create_product::CreateProduct, home::Home, inventory::Inventory, not_found::NotFound, recipies::Recipies
};
#[derive(Debug, Clone, Store)]
@@ -71,6 +71,8 @@ pub fn App() -> impl IntoView {
view! { <Home /> }
}
/>
+
+ // Inventory
<Route
path=path!("/inventory")
view=move || {
@@ -83,12 +85,28 @@ pub fn App() -> impl IntoView {
view! { <Buy /> }
}
/>
+
+ // Recipes
<Route
path=path!("/recipies")
view=move || {
view! { <Recipies /> }
}
/>
+
+ // Products
+ <Route
+ path=path!("/create-product")
+ view=move || {
+ view! { <CreateProduct /> }
+ }
+ />
+ <Route
+ path=path!("/associate-barcode-product")
+ view=move || {
+ view! { <AssociateBarcode /> }
+ }
+ />
</Routes>
</Router>
}