mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 05:34:17 +00:00
31 lines
911 B
TypeScript
31 lines
911 B
TypeScript
|
|
export const keys = {
|
||
|
|
server: {
|
||
|
|
status: () => ['server', 'status'] as const,
|
||
|
|
},
|
||
|
|
nodes: {
|
||
|
|
root: () => ['nodes'] as const,
|
||
|
|
list: () => ['nodes', 'list'] as const,
|
||
|
|
},
|
||
|
|
settings: {
|
||
|
|
root: () => ['settings'] as const,
|
||
|
|
all: () => ['settings', 'all'] as const,
|
||
|
|
defaults: () => ['settings', 'defaults'] as const,
|
||
|
|
},
|
||
|
|
inbounds: {
|
||
|
|
root: () => ['inbounds'] as const,
|
||
|
|
slim: () => ['inbounds', 'slim'] as const,
|
||
|
|
options: () => ['inbounds', 'options'] as const,
|
||
|
|
},
|
||
|
|
clients: {
|
||
|
|
root: () => ['clients'] as const,
|
||
|
|
list: (params: unknown) => ['clients', 'list', params] as const,
|
||
|
|
onlines: () => ['clients', 'onlines'] as const,
|
||
|
|
lastOnline: () => ['clients', 'lastOnline'] as const,
|
||
|
|
},
|
||
|
|
xray: {
|
||
|
|
root: () => ['xray'] as const,
|
||
|
|
config: () => ['xray', 'config'] as const,
|
||
|
|
outboundsTraffic: () => ['xray', 'outboundsTraffic'] as const,
|
||
|
|
},
|
||
|
|
} as const;
|