wip: roles fetch

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

View File

@ -33,6 +33,13 @@
let selectedApp
const request = fetchData(`/api/admin/users/${userId}`)
const roles = fetchData(
`/api/admin/roles/app_5a72d9b923504765852338e614a72c85`
)
$: console.log($apps)
$: console.log($roles)
async function deleteUser() {
const res = await users.del(userId)
@ -62,8 +69,10 @@
<Body
>Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis porro
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>
</div>
<Divider size="S" />