feat: add decision API routes with tests
PUT /api/decisions/{listing_id} to set decision,
GET /api/decisions to list all user decisions,
DELETE /api/decisions/{listing_id} to remove a decision.
All 6 API route tests pass.
This commit is contained in:
parent
d350b806ba
commit
341de89004
3 changed files with 241 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ from typing import Annotated, AsyncGenerator, Optional
|
|||
from api.auth import get_current_user
|
||||
from api.config import DEV_TIER_ORIGINS, PROD_TIER_ORIGINS, APP_ENV
|
||||
from api.passkey_routes import passkey_router
|
||||
from api.decision_routes import decision_router
|
||||
from api.poi_routes import poi_router
|
||||
from api.ws_routes import ws_router
|
||||
from api.rate_limit_config import RateLimitConfig
|
||||
|
|
@ -100,6 +101,7 @@ app = FastAPI(
|
|||
)
|
||||
app.include_router(passkey_router)
|
||||
app.include_router(poi_router)
|
||||
app.include_router(decision_router)
|
||||
app.include_router(ws_router)
|
||||
init_metrics("realestate-crawler-api")
|
||||
app.mount("/metrics", get_metrics_asgi_app())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue