Skip to main content

Module http

Module http 

Source
Expand description

HTTP handlers

Generated by metaphor-schema. Do not edit manually.

These handlers use Axum and backbone-core’s BackboneCrudHandler to provide all 12 standard Backbone CRUD endpoints.

Re-exports§

pub use pos_closing_entry_handler::create_pos_closing_entry_routes;
pub use pos_closing_entry_handler::create_pos_closing_entry_read_routes;
pub use pos_closing_entry_handler::create_pos_closing_entry_write_routes;
pub use pos_invoice_handler::create_pos_invoice_routes;
pub use pos_invoice_handler::create_pos_invoice_read_routes;
pub use pos_invoice_handler::create_pos_invoice_write_routes;
pub use pos_invoice_item_handler::create_pos_invoice_item_routes;
pub use pos_invoice_item_handler::create_pos_invoice_item_read_routes;
pub use pos_invoice_item_handler::create_pos_invoice_item_write_routes;
pub use pos_payment_handler::create_pos_payment_routes;
pub use pos_payment_handler::create_pos_payment_read_routes;
pub use pos_payment_handler::create_pos_payment_write_routes;
pub use pos_profile_handler::create_pos_profile_routes;
pub use pos_profile_handler::create_pos_profile_read_routes;
pub use pos_profile_handler::create_pos_profile_write_routes;
pub use pos_opening_entry_handler::create_pos_opening_entry_routes;
pub use pos_opening_entry_handler::create_pos_opening_entry_read_routes;
pub use pos_opening_entry_handler::create_pos_opening_entry_write_routes;
pub use pos_cash_movement_handler::create_pos_cash_movement_routes;
pub use pos_cash_movement_handler::create_pos_cash_movement_read_routes;
pub use pos_cash_movement_handler::create_pos_cash_movement_write_routes;
pub use pos_discount_handler::create_pos_discount_routes;
pub use pos_discount_handler::create_pos_discount_read_routes;
pub use pos_discount_handler::create_pos_discount_write_routes;
pub use pos_manager_pin_handler::create_pos_manager_pin_routes;
pub use pos_manager_pin_handler::create_pos_manager_pin_read_routes;
pub use pos_manager_pin_handler::create_pos_manager_pin_write_routes;
pub use pos_floor_plan_handler::create_pos_floor_plan_routes;
pub use pos_floor_plan_handler::create_pos_floor_plan_read_routes;
pub use pos_floor_plan_handler::create_pos_floor_plan_write_routes;
pub use pos_table_handler::create_pos_table_routes;
pub use pos_table_handler::create_pos_table_read_routes;
pub use pos_table_handler::create_pos_table_write_routes;
pub use guarded_routes::create_guarded_pos_priced_route;
pub use guarded_routes::create_guarded_pos_priced_route_with_outbox;
pub use guarded_routes::create_guarded_pos_routes;
pub use guarded_routes::create_guarded_pos_routes_with_outbox;

Modules§

guarded_routes
Guarded route composition — the RECOMMENDED way to mount the POS module.
pos_cash_movement_handler
PosCashMovement REST handlers
pos_closing_entry_handler
PosClosingEntry REST handlers
pos_discount_handler
PosDiscount REST handlers
pos_floor_plan_handler
PosFloorPlan REST handlers
pos_invoice_handler
PosInvoice REST handlers
pos_invoice_item_handler
PosInvoiceItem REST handlers
pos_manager_pin_handler
PosManagerPin REST handlers
pos_opening_entry_handler
PosOpeningEntry REST handlers
pos_payment_handler
PosPayment REST handlers
pos_profile_handler
PosProfile REST handlers
pos_table_handler
PosTable REST handlers

Structs§

CompanyClaims
The access-token claims a guarded surface trusts.
CompanyContext
The company + subject proven by a validated access token.
CompanyVerifier
Verifier the composing service builds once (from its JWT secret) and clones into guarded routes.
TenantClaims
The access-token claims a guarded surface trusts.
TenantContext
The company + subject proven by a validated access token.
TenantVerifier
Verifier the composing service builds once (from its JWT secret) and clones into guarded routes.

Functions§

company_auth
Middleware: validate the Bearer token and insert a CompanyContext; reject with 401 otherwise.
tenant_auth
Middleware: validate the Bearer token and insert a CompanyContext; reject with 401 otherwise.