mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2026-05-24 16:00:16 -04:00
10 lines
266 B
JavaScript
10 lines
266 B
JavaScript
export const checkIfAuthorized = async () => {
|
|
const { isAuthorized } = await (await fetch('/isAuthorized')).json();
|
|
return { isAuthorized };
|
|
};
|
|
|
|
export const getAppList = async () => {
|
|
const apps = await (await fetch(`/apps`)).json();
|
|
return apps || [];
|
|
};
|