Spaces:
Running
Running
visilog
Browse files- server/main.py +2 -1
server/main.py
CHANGED
|
@@ -2,6 +2,7 @@ import os
|
|
| 2 |
import httpx
|
| 3 |
from fastapi import FastAPI, Request, Response
|
| 4 |
from fastapi.middleware.cors import CORSMiddleware
|
|
|
|
| 5 |
from starlette.background import BackgroundTask
|
| 6 |
from starlette.responses import StreamingResponse, FileResponse
|
| 7 |
from fastapi.staticfiles import StaticFiles
|
|
@@ -70,7 +71,7 @@ async def _reverse_proxy(request: Request):
|
|
| 70 |
# --- Client Configuration Endpoint ---
|
| 71 |
# This endpoint must be defined *before* the reverse proxy routes.
|
| 72 |
class ClientConfig(BaseModel):
|
| 73 |
-
googleMapsApiKey: str
|
| 74 |
|
| 75 |
@app.get("/api/config", response_model=ClientConfig)
|
| 76 |
async def get_client_config():
|
|
|
|
| 2 |
import httpx
|
| 3 |
from fastapi import FastAPI, Request, Response
|
| 4 |
from fastapi.middleware.cors import CORSMiddleware
|
| 5 |
+
from typing import Optional
|
| 6 |
from starlette.background import BackgroundTask
|
| 7 |
from starlette.responses import StreamingResponse, FileResponse
|
| 8 |
from fastapi.staticfiles import StaticFiles
|
|
|
|
| 71 |
# --- Client Configuration Endpoint ---
|
| 72 |
# This endpoint must be defined *before* the reverse proxy routes.
|
| 73 |
class ClientConfig(BaseModel):
|
| 74 |
+
googleMapsApiKey: Optional[str]
|
| 75 |
|
| 76 |
@app.get("/api/config", response_model=ClientConfig)
|
| 77 |
async def get_client_config():
|