Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auth-jwt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The following endpoints are available in the API:

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While this change correctly updates the example to use the /api/user endpoint, it creates an inconsistency within the README. The 'API Endpoints' list (line 65) still refers to the old /api/auth/register endpoint, and line 68 also lists /api/user.

For clarity and consistency, please update the API endpoints list to remove the incorrect /api/auth/register entry and clarify that POST /api/user is for user registration.

```

2. Login to get a JWT:
Expand Down