Update docs/2.guide/4.recipes/4.sessions-and-authentication.md

Changed to relative link

Co-authored-by: Sébastien Chopin <seb@nuxtlabs.com>
This commit is contained in:
David Nahodyl 2024-05-22 19:39:10 -04:00 committed by GitHub
parent 7664825a8a
commit b896daf0aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ NUXT_SESSION_PASSWORD=password-with-at-least-32-characters
### 2. Create a registration page
Create a new page in your Nuxt app for user registration. This page should have a form with fields for email and password. We'll intercept the form submission using `@submit.prevent` and use [`$fetch`](https://nuxt.com/docs/getting-started/data-fetching#fetch) to post the data to `/api/register`.
Create a new page in your Nuxt app for user registration. This page should have a form with fields for email and password. We'll intercept the form submission using `@submit.prevent` and use [`$fetch`](/docs/getting-started/data-fetching#fetch) to post the data to `/api/register`.
```vue [pages/register.vue]
<script setup lang="ts">