Register warehouse blueprint and update dashboard for warehouse module integration.

This commit is contained in:
2025-09-10 21:48:51 +03:00
parent a7e331aa38
commit 2b84b13524
3 changed files with 29 additions and 6 deletions

View File

@@ -12,8 +12,9 @@ def create_app():
db.init_app(app)
from app.routes import bp as main_bp
from app.routes import bp as main_bp, warehouse_bp
app.register_blueprint(main_bp, url_prefix='/')
app.register_blueprint(warehouse_bp)
# Add 'now' function to Jinja2 globals
app.jinja_env.globals['now'] = datetime.now