merge: chore/cleanup-remove-bloat-and-secrets into main
This commit is contained in:
commit
bde2f3a97d
1173 changed files with 437609 additions and 0 deletions
14
app/domain/news/admin_router.py
Normal file
14
app/domain/news/admin_router.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"""T28 RSS Ingest HTTP endpoint."""
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.domain.news.ingest import ingest_all
|
||||
|
||||
router = APIRouter(prefix="/api/v1/news/_admin", tags=["news-admin"])
|
||||
|
||||
|
||||
@router.post("/ingest")
|
||||
async def trigger_ingest() -> dict:
|
||||
"""Trigger RSS ingest now (synchronous). Returns counts."""
|
||||
result = await ingest_all()
|
||||
return result
|
||||
Loading…
Add table
Add a link
Reference in a new issue