mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
28 lines
566 B
Vue
28 lines
566 B
Vue
<template>
|
|
<form @submit.prevent="register">
|
|
<input type="text" v-model="username" placeholder="username" />
|
|
<input type="password" v-model="password" placeholder="password" />
|
|
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const username = ref("");
|
|
const password = ref("");
|
|
|
|
async function register() {
|
|
await $fetch("/api/v1/auth/signup/simple", {
|
|
method: "POST",
|
|
body: {
|
|
username: username.value,
|
|
password: password.value,
|
|
},
|
|
});
|
|
}
|
|
|
|
definePageMeta({
|
|
layout: false,
|
|
});
|
|
</script>
|