File size: 575 Bytes
0ca069d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2554d9f
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
```python
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from backend.main import app as api_app
from backend.config import get_settings
import os

settings = get_settings()

app = FastAPI(title="CryptoSignal Sleuth Pro")

# Mount the API under /api
app.mount(settings.API_BASE_URL, api_app)

# Serve static files from frontend/dist
app.mount(
    settings.FRONTEND_BASE_PATH,
    StaticFiles(directory="frontend/dist", html=True),
    name="static"
)

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=7860)
```