Login test

This commit is contained in:
2025-03-20 17:50:28 +01:00
parent 1d7d24655f
commit 7ac279da8e
7 changed files with 147 additions and 5 deletions

24
pages/user/myself.vue Normal file
View File

@@ -0,0 +1,24 @@
<script setup lang="ts">
const { data } = await useFetch('/api/public/1/auth/myself/', {
method: 'GET',
headers: {
'Accept': 'application/json',
}
});
</script>
<template>
<div>
<h2>MYSELF</h2>
<div v-if="data === null">
No Data
</div>
<div v-else>
{{ data }}
</div>
</div>
</template>
<style scoped>
</style>