mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
23 lines
558 B
Vue
23 lines
558 B
Vue
<template>
|
|
<form @submit.prevent="register">
|
|
<input type="text" v-model="username" placeholder="username" />
|
|
<input type="text" 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/signup/simple', {
|
|
method: "POST",
|
|
body: {
|
|
username: username.value,
|
|
password: password.value
|
|
}
|
|
})
|
|
}
|
|
</script> |