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.
Attributes¶
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: str = '/games', tags: list[str] | None = None, exclude_games: list[str] | None = None) fastapi.APIRouter¶
Create a router for the games API.
- Parameters:
prefix – URL prefix for the router
tags – OpenAPI tags for the routes
exclude_games – List of games to exclude
- Returns:
APIRouter with games endpoints
- dataflow.api.routers.games.create_games_websocket_router(prefix: str = '/ws/games') fastapi.APIRouter¶
Create WebSocket routes for games.
- Parameters:
prefix – URL prefix for WebSocket routes
- Returns:
APIRouter with WebSocket endpoints
- dataflow.api.routers.games.get_game_api()¶
Get the game API instance (singleton).
- dataflow.api.routers.games.GAMES_AVAILABLE = True¶
- dataflow.api.routers.games.logger¶