fix(server): add permission for server stats api (#854)

This commit is contained in:
Alex
2022-10-23 17:01:41 -05:00
committed by GitHub
parent a6eea4d096
commit 7b954e21e7
4 changed files with 23 additions and 9 deletions

View File

@@ -12,10 +12,8 @@ export const load: PageServerLoad = async ({ parent }) => {
}
const { data: allUsers } = await serverApi.userApi.getAllUsers(false);
const { data: stats } = await serverApi.serverInfoApi.getStats();
return {
user: user,
allUsers: allUsers,
stats: stats
allUsers: allUsers
};
};