feat(discovery): world visit tracking endpoint with atomic play_count increment, last_played_at, and deduplication

This commit is contained in:
2026-09-15 20:57:25 +00:00
parent 892e330456
commit 38dc0cab21
3 changed files with 301 additions and 1 deletions
+3 -1
View File
@@ -9,7 +9,7 @@ from app.config import settings
from app.routers import (
auth, users, worlds, assets, avatar, world_content, internal,
presence, groups, social_friends, profiles, chat_dm, chat_reports,
chat_world, wallet, payments, marketplace, payouts,
chat_world, wallet, payments, marketplace, payouts, discovery,
)
from app.gateway import ws
@@ -62,7 +62,9 @@ app.include_router(wallet.router, prefix="/api/wallet", tags=["wallet"])
app.include_router(payments.router, prefix="/api/payments", tags=["payments"])
app.include_router(marketplace.router, prefix="/api/marketplace", tags=["marketplace"])
app.include_router(payouts.router, prefix="/api/payouts", tags=["payouts"])
app.include_router(discovery.router, prefix="/api/discovery", tags=["discovery"])
app.include_router(ws.router, prefix="/api", tags=["websocket"])
app.include_router(ws.router, prefix="/v1", tags=["websocket"])