mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
https://github.com/dcs-liberation/dcs_liberation/issues/2039 Partial fix for https://github.com/dcs-liberation/dcs_liberation/issues/2045 (now works in the new map, old one not fixed yet).
15 lines
350 B
Python
15 lines
350 B
Python
from fastapi import APIRouter, Depends
|
|
|
|
from game import Game
|
|
from .models import SupplyRouteJs
|
|
from ..dependencies import GameContext
|
|
|
|
router: APIRouter = APIRouter(prefix="/supply-routes")
|
|
|
|
|
|
@router.get("/")
|
|
def list_supply_routes(
|
|
game: Game = Depends(GameContext.require),
|
|
) -> list[SupplyRouteJs]:
|
|
return SupplyRouteJs.all_in_game(game)
|