feat(pos): register POS, customers, cash register blueprints and page routes
This commit is contained in:
17
pos/app.py
17
pos/app.py
@@ -16,6 +16,15 @@ def create_app():
|
||||
from blueprints.catalog_bp import catalog_bp
|
||||
app.register_blueprint(catalog_bp)
|
||||
|
||||
from blueprints.pos_bp import pos_bp
|
||||
app.register_blueprint(pos_bp)
|
||||
|
||||
from blueprints.customers_bp import customers_bp
|
||||
app.register_blueprint(customers_bp)
|
||||
|
||||
from blueprints.cashregister_bp import cashregister_bp
|
||||
app.register_blueprint(cashregister_bp)
|
||||
|
||||
# Health check
|
||||
@app.route('/pos/health')
|
||||
def health():
|
||||
@@ -35,6 +44,14 @@ def create_app():
|
||||
def pos_inventory():
|
||||
return render_template('inventory.html')
|
||||
|
||||
@app.route('/pos/sale')
|
||||
def pos_sale():
|
||||
return render_template('pos.html')
|
||||
|
||||
@app.route('/pos/customers')
|
||||
def pos_customers():
|
||||
return render_template('customers.html')
|
||||
|
||||
@app.route('/pos/static/<path:filename>')
|
||||
def pos_static(filename):
|
||||
return send_from_directory('static', filename)
|
||||
|
||||
Reference in New Issue
Block a user