mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 16:46:43 +08:00
11 lines
305 B
TypeScript
11 lines
305 B
TypeScript
import axios from "axios";
|
|
import { NodeDetailRsp, NodeListRsp } from "../type/node";
|
|
|
|
export const getNodeList = async () => {
|
|
return await axios.get<NodeListRsp>("nodes?view=summary");
|
|
};
|
|
|
|
export const getNodeDetail = async (id: string) => {
|
|
return await axios.get<NodeDetailRsp>(`nodes/${id}`);
|
|
};
|