Signe22 commited on
Commit
6c6ad47
·
verified ·
1 Parent(s): 46248c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -8,13 +8,11 @@ from fastapi.middleware.cors import CORSMiddleware
8
 
9
  app = FastAPI(title="Green Energy News API", version="1.0.0")
10
 
11
- # SQLite stays in the same repo position
12
- BASE_DIR = Path(__file__).resolve().parent.parent
13
- DB_PATH = BASE_DIR / "data" / "news.db"
14
 
15
  app.add_middleware(
16
  CORSMiddleware,
17
- allow_origins=["*"], # tighten later if needed
18
  allow_credentials=False,
19
  allow_methods=["*"],
20
  allow_headers=["*"],
 
8
 
9
  app = FastAPI(title="Green Energy News API", version="1.0.0")
10
 
11
+ DB_PATH = Path("/app/data/news.db")
 
 
12
 
13
  app.add_middleware(
14
  CORSMiddleware,
15
+ allow_origins=["*"],
16
  allow_credentials=False,
17
  allow_methods=["*"],
18
  allow_headers=["*"],