dataflow.api.routers.games¶
Games router for the Haive API.
This module provides API routes for the general games system, integrating with the haive-games package.
Functions¶
|
Create a router for the games API. |
|
Create WebSocket routes for games. |
Get the game API instance (singleton). |
Module Contents¶
- dataflow.api.routers.games.create_games_router(prefix='/games', tags=None, exclude_games=None)¶
Create a router for the games API.
- dataflow.api.routers.games.create_games_websocket_router(prefix='/ws/games')¶
Create WebSocket routes for games.
- Parameters:
prefix (str) – URL prefix for WebSocket routes
- Returns:
APIRouter with WebSocket endpoints
- Return type:
fastapi.APIRouter
- dataflow.api.routers.games.get_game_api()¶
Get the game API instance (singleton).