mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 09:32:29 +01:00
11 lines
337 B
TypeScript
11 lines
337 B
TypeScript
import { PanelPermissions } from '@/state/permissions';
|
|
import http from '@/api/http';
|
|
|
|
export default (): Promise<PanelPermissions> => {
|
|
return new Promise((resolve, reject) => {
|
|
http.get('/api/client/permissions')
|
|
.then(({ data }) => resolve(data.attributes.permissions))
|
|
.catch(reject);
|
|
});
|
|
};
|