Rename Postgres tables for better recognition and add additional routes in web app

This commit is contained in:
Thilo Hohlt
2024-07-31 10:29:46 +02:00
parent a7f2fdebf5
commit d21e00a0c3
13 changed files with 601 additions and 243 deletions

View File

@@ -1 +1,26 @@
<form action=""></form>
<script lang="ts">
import { enhance } from "$app/forms";
const { form } = $props();
</script>
<form method="POST" use:enhance>
{#if form?.success}
<p>Successfully logged in</p>
{/if}
{#if form?.success === false}
<p>{form.message}</p>
{/if}
<label>
Username
<input type="text" name="username" required />
</label>
<label>
Password
<input type="password" name="password" required />
</label>
<button type="submit">Submit</button>
</form>