Spaces:
Running
Running
| # backend/main.py (Simple Forwarder) | |
| from fastapi import FastAPI | |
| from fastapi.middleware.cors import CORSMiddleware | |
| app = FastAPI(title="OldServer Backend") | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["*"], | |
| allow_credentials=True, | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| # Yeh important line hai - sab requests ko app.py ke app mein forward karega | |
| from app import app as main_app | |
| app.mount("/", main_app) |