 710609fa60
			
		
	
	710609fa60
	
	
	
		
			
			* WebHost: move room_status out of __init__.py The old location is unexpected and easy to miss. * WebHost: fix typing in api/room_status
		
			
				
	
	
		
			16 lines
		
	
	
		
			375 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			375 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """API endpoints package."""
 | |
| from typing import List, Tuple
 | |
| 
 | |
| from flask import Blueprint
 | |
| 
 | |
| from ..models import Seed
 | |
| 
 | |
| api_endpoints = Blueprint('api', __name__, url_prefix="/api")
 | |
| 
 | |
| 
 | |
| def get_players(seed: Seed) -> List[Tuple[str, str]]:
 | |
|     return [(slot.player_name, slot.game) for slot in seed.slots]
 | |
| 
 | |
| 
 | |
| from . import datapackage, generate, room, user  # trigger registration
 |