17 lines
343 B
Python
17 lines
343 B
Python
from fastapi import APIRouter
|
|
|
|
from server.errors import call
|
|
from server.services.adb import Adb
|
|
|
|
router = APIRouter(prefix="/api/adb")
|
|
|
|
|
|
@router.get("/devices")
|
|
def devices():
|
|
return call(lambda: {"devices": Adb.locate().list_devices()})
|
|
|
|
|
|
@router.post("/probe-mumu")
|
|
def probe_mumu():
|
|
return call(lambda: Adb.locate().probe_mumu())
|