mirror of
https://github.com/barkeser2002/pterodactyl-addons.git
synced 2026-09-25 17:26:02 +03:00
9 lines
260 B
TypeScript
9 lines
260 B
TypeScript
import useSWR from 'swr';
|
|
import http from '@/api/http';
|
|
export default (uuid: string) =>
|
|
useSWR([uuid, '/account'], async (): Promise<any> => {
|
|
const { data } = await http.get(`/api/client/account/avatar`, { params: { uuid } });
|
|
return data;
|
|
});
|
|
|