forked from VinokurovVE/tests
Tables, cards, (servers)
This commit is contained in:
@ -234,7 +234,7 @@ export function useServer(server_id?: number) {
|
||||
|
||||
export function useServerIps(server_id?: number, offset?: number, limit?: number) {
|
||||
const { data, error, isLoading } = useSWR(
|
||||
server_id ? `/api/servers?server_id=${server_id}&offset=${offset || 0}&limit=${limit || 10}` : null,
|
||||
server_id ? `/api/server_ips?server_id=${server_id}&offset=${offset || 0}&limit=${limit || 10}` : null,
|
||||
(url) => fetcher(url, BASE_URL.servers),
|
||||
{
|
||||
revalidateOnFocus: false
|
||||
|
Reference in New Issue
Block a user