mirror of
https://github.com/vale981/ray
synced 2025-03-12 14:16:39 -04: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}`);
|
||
|
};
|