mirror of
https://github.com/barkeser2002/pterodactyl-addons.git
synced 2026-09-25 12:45:56 +03:00
11 lines
273 B
TypeScript
11 lines
273 B
TypeScript
import useSWR from 'swr';
|
|
import http from '@/api/http';
|
|
|
|
export default () => {
|
|
return useSWR([ 'server:minecrafttemplate' ], async () => {
|
|
const { data } = await http.get('/api/client/minecrafttemplate', { timeout: 60000 });
|
|
|
|
return data;
|
|
},);
|
|
};
|