wip: roles fetch

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-17 10:10:51 +02:00
parent 771467fba1
commit f7c05d0631
1 changed files with 11 additions and 2 deletions

View File

@ -33,6 +33,13 @@
let selectedApp let selectedApp
const request = fetchData(`/api/admin/users/${userId}`) const request = fetchData(`/api/admin/users/${userId}`)
const roles = fetchData(
`/api/admin/roles/app_5a72d9b923504765852338e614a72c85`
)
$: console.log($apps)
$: console.log($roles)
async function deleteUser() { async function deleteUser() {
const res = await users.del(userId) const res = await users.del(userId)
@ -62,8 +69,10 @@
<Body <Body
>Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis porro >Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis porro
ut nesciunt ipsam perspiciatis aliquam et hic minus alias beatae. Odit ut nesciunt ipsam perspiciatis aliquam et hic minus alias beatae. Odit
veritatis quos quas laborum magnam tenetur perspiciatis ex hic.</Body veritatis quos quas laborum magnam tenetur perspiciatis ex hic.
> </Body>
{JSON.stringify($roles.data, null, 2)}
<Body />
</Layout> </Layout>
</div> </div>
<Divider size="S" /> <Divider size="S" />