Skip to main content

backbone_pos/presentation/http/
mod.rs

1//! HTTP handlers
2//!
3//! Generated by metaphor-schema. Do not edit manually.
4//!
5//! These handlers use Axum and backbone-core's BackboneCrudHandler
6//! to provide all 12 standard Backbone CRUD endpoints.
7
8pub mod pos_closing_entry_handler;
9pub mod pos_invoice_handler;
10pub mod pos_invoice_item_handler;
11pub mod pos_payment_handler;
12pub mod pos_profile_handler;
13pub mod pos_opening_entry_handler;
14pub mod pos_cash_movement_handler;
15pub mod pos_discount_handler;
16pub mod pos_manager_pin_handler;
17pub mod pos_floor_plan_handler;
18pub mod pos_table_handler;
19
20// <<< CUSTOM
21pub mod guarded_routes;
22// END CUSTOM
23
24// Re-exports
25pub use pos_closing_entry_handler::{create_pos_closing_entry_routes, create_pos_closing_entry_read_routes, create_pos_closing_entry_write_routes};
26pub use pos_invoice_handler::{create_pos_invoice_routes, create_pos_invoice_read_routes, create_pos_invoice_write_routes};
27pub use pos_invoice_item_handler::{create_pos_invoice_item_routes, create_pos_invoice_item_read_routes, create_pos_invoice_item_write_routes};
28pub use pos_payment_handler::{create_pos_payment_routes, create_pos_payment_read_routes, create_pos_payment_write_routes};
29pub use pos_profile_handler::{create_pos_profile_routes, create_pos_profile_read_routes, create_pos_profile_write_routes};
30pub use pos_opening_entry_handler::{create_pos_opening_entry_routes, create_pos_opening_entry_read_routes, create_pos_opening_entry_write_routes};
31pub use pos_cash_movement_handler::{create_pos_cash_movement_routes, create_pos_cash_movement_read_routes, create_pos_cash_movement_write_routes};
32pub use pos_discount_handler::{create_pos_discount_routes, create_pos_discount_read_routes, create_pos_discount_write_routes};
33pub use pos_manager_pin_handler::{create_pos_manager_pin_routes, create_pos_manager_pin_read_routes, create_pos_manager_pin_write_routes};
34pub use pos_floor_plan_handler::{create_pos_floor_plan_routes, create_pos_floor_plan_read_routes, create_pos_floor_plan_write_routes};
35pub use pos_table_handler::{create_pos_table_routes, create_pos_table_read_routes, create_pos_table_write_routes};
36// <<< CUSTOM
37pub use guarded_routes::{create_guarded_pos_priced_route, create_guarded_pos_priced_route_with_outbox, create_guarded_pos_routes, create_guarded_pos_routes_with_outbox};
38// The company guard now lives in the framework (`backbone_auth::company`, feature `axum`) — POS proved
39// the pattern, and it was promoted once a second guarded module needed it. Re-exported here so the
40// composing service and the TG-* tests keep importing it from this module.
41pub use backbone_auth::company::{company_auth, CompanyClaims, CompanyContext, CompanyVerifier};
42// Deprecated Tenant* aliases: a composing service pinned to `main` (e.g. serpa-posman-service)
43// references `TenantVerifier` etc. through this module. Keep it compiling on sync; migrate to the
44// Company* names (ADR-0005) and then drop these.
45#[allow(deprecated)]
46pub use backbone_auth::{TenantClaims, TenantContext, TenantVerifier, tenant_auth};
47// END CUSTOM