File size: 506 Bytes
0082fdf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

import os
import sys

# Add project root and client directory to path
sys.path.insert(0, os.getcwd())
sys.path.insert(0, os.path.join(os.getcwd(), "client"))

# Mock environment variables
os.environ["BACKEND_PORT"] = "8000"
os.environ["BACKEND_API_URL"] = ""

try:
    from client.app import app
    print("Successfully imported app")
    print("Routes:")
    for route in app.routes:
        print(f"  {route.path} ({type(route).__name__})")
except Exception as e:
    print(f"Error importing app: {e}")