feat: add admin endpoint to reset Postgres schema and Qdrant collection via Alembic migrations
Browse files
backend/src/routers/admin.py
CHANGED
|
@@ -14,7 +14,7 @@ router = APIRouter()
|
|
| 14 |
|
| 15 |
@router.post("/reset-db")
|
| 16 |
async def reset_db(password: str = None):
|
| 17 |
-
if password != "
|
| 18 |
raise HTTPException(status_code=403, detail="Invalid reset password.")
|
| 19 |
|
| 20 |
settings = get_settings()
|
|
|
|
| 14 |
|
| 15 |
@router.post("/reset-db")
|
| 16 |
async def reset_db(password: str = None):
|
| 17 |
+
if password != "ketanD048":
|
| 18 |
raise HTTPException(status_code=403, detail="Invalid reset password.")
|
| 19 |
|
| 20 |
settings = get_settings()
|