File size: 976 Bytes
ed0b977
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

from flask import Flask, session
from utils.blueprints.assistant import assistant_bp
from utils.blueprints.admin import admin_bp

app = Flask(__name__)
app.config['SECRET_KEY'] = 'test'
app.register_blueprint(assistant_bp)
app.register_blueprint(admin_bp)

# Mock DB for imports to work? 
# Actually, the blueprint imports mongo... we might need to mock it or set up app context.
# To avoid complex mocking of mongo, I'll just check if the URL map contains the routes.

print("--- Registered Routes ---")
for rule in app.url_map.iter_rules():
    print(f"{rule.endpoint}: {rule}")

print("\n--- Checking specific URLs ---")
urls_to_check = [
    "/assistant/dashboard",
    "/assistant/dashboard/data_entry",
    "/assistant/dashboard/account_creation"
]

adapter = app.url_map.bind("localhost")
for url in urls_to_check:
    try:
        match = adapter.match(url)
        print(f"FOUND: {url} -> {match}")
    except Exception as e:
        print(f"MISSING: {url} -> {e}")