Refactor server picker and limit ping requests
This commit is contained in:
+4
-1
@@ -79,6 +79,9 @@ export const api = {
|
||||
restart: () => request('/api/singbox/restart', { method: 'POST' }),
|
||||
},
|
||||
servers: {
|
||||
pingAll: () => request('/api/servers/ping-all', { method: 'POST' }),
|
||||
ping: (serverIds) => request('/api/servers/ping-all', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ serverIds }),
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user