mirror of
https://github.com/Rainyy21/k3s-health-dashboard.git
synced 2026-10-11 00:50:20 -04:00
9 lines
183 B
Python
9 lines
183 B
Python
from fastapi import APIRouter
|
|
from app.k8s_client import fetch_nodes
|
|
|
|
router = APIRouter(prefix="/nodes", tags=["nodes"])
|
|
|
|
@router.get("/")
|
|
def list_nodes():
|
|
return fetch_nodes()
|