File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Replace `<DB_USER>` with the value from your `.env` file.
5858
5959The 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
69691. 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
74742. Login to get a JWT:
You can’t perform that action at this time.
0 commit comments