feat(pos): register inventory + catalog blueprints, add page routes

This commit is contained in:
2026-03-31 02:15:00 +00:00
parent ab655e2ff1
commit 3a271dd4ed

View File

@@ -10,6 +10,12 @@ def create_app():
from blueprints.config_bp import config_bp
app.register_blueprint(config_bp)
from blueprints.inventory_bp import inventory_bp
app.register_blueprint(inventory_bp)
from blueprints.catalog_bp import catalog_bp
app.register_blueprint(catalog_bp)
# Health check
@app.route('/pos/health')
def health():
@@ -21,6 +27,14 @@ def create_app():
def pos_login():
return render_template('login.html')
@app.route('/pos/catalog')
def pos_catalog():
return render_template('catalog.html')
@app.route('/pos/inventory')
def pos_inventory():
return render_template('inventory.html')
@app.route('/pos/static/<path:filename>')
def pos_static(filename):
return send_from_directory('static', filename)