mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 04:22:13 +00:00
Update src/routes/docs/tutorials/nuxt-ssr-auth/step-6/+page.markdoc
Co-authored-by: Luke B. Silver <22452787+loks0n@users.noreply.github.com>
This commit is contained in:
@@ -7,7 +7,7 @@ step: 6
|
||||
|
||||
Now the end-user is able to sign up, we can create the account page. This page will display basic information about the user, and allow the user to log out.
|
||||
|
||||
To create the account page, we will first need to fetch the user data. We can do this by creating a new API endpoint that retrieves the user information. Create a new `user.get.js` file in the `server/routes/api` directory and add the following code:
|
||||
Before creating the account page, the route should fetch the user data. Create a new `user.get.js` file in the `server/routes/api` directory and add the following code:
|
||||
|
||||
```js
|
||||
// server/routes/api/user.get.js
|
||||
|
||||
Reference in New Issue
Block a user