Skip to content

Commit 7eec4fa

Browse files
authored
Merge pull request #3041 from snnyvrz/patch-1
Update README.md of a recipe: Auth + Docker + Postgres + JWT
2 parents 9d23f4c + 6d1300d commit 7eec4fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth-docker-postgres-jwt/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Replace `<DB_USER>` with the value from your `.env` file.
5858

5959
The following endpoints are available in the API:
6060

61-
- **POST /api/auth/register**: Register a new user.
61+
- **POST /api/user**: Register a new user.
6262
- **POST /api/auth/login**: Authenticate a user and return a JWT.
6363
- **GET /api/user/:id**: Get a user (requires a valid JWT).
6464
- **PATCH /api/user/:id**: Update a user (requires a valid JWT).
@@ -68,7 +68,7 @@ The following endpoints are available in the API:
6868

6969
1. Register a new user:
7070
```bash
71-
curl -X POST http://localhost:3000/api/auth/register -d '{"username":"testuser", "password":"testpassword"}' -H "Content-Type: application/json"
71+
curl -X POST http://localhost:3000/api/user -d '{"username":"testuser", "password":"testpassword", "email": "[email protected]"}' -H "Content-Type: application/json"
7272
```
7373

7474
2. Login to get a JWT:

0 commit comments

Comments
 (0)