import project
All checks were successful
Gitea Actions Demo / deploy (push) Successful in 35s

This commit is contained in:
2025-11-20 21:41:13 +08:00
commit 32d15e8c92
21 changed files with 401 additions and 0 deletions

9
api/deps.py Normal file
View File

@ -0,0 +1,9 @@
from config.database import SessionLocal
from fastapi import Depends
def get_db():
db = SessionLocal()
try:
yield db
finally:
db.close()