File size: 178 Bytes
625dafa
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import shutil
from fastapi import APIRouter

router = APIRouter(prefix="/api/node")

@router.get("/probe")
def probe():
    return {"installed": shutil.which("node") is not None}