18 lines
513 B
Python
18 lines
513 B
Python
from typing import Any
|
|
from fastapi import APIRouter
|
|
from app.native.api import ChangeSet
|
|
from app.services.tjnetwork import (
|
|
get_scada_info,
|
|
get_all_scada_info,
|
|
)
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/getscadaproperties/")
|
|
async def fast_get_scada_properties(network: str, scada: str) -> dict[str, Any]:
|
|
return get_scada_info(network, scada)
|
|
|
|
@router.get("/getallscadaproperties/")
|
|
async def fast_get_all_scada_properties(network: str) -> list[dict[str, Any]]:
|
|
return get_all_scada_info(network)
|