Introduces GET /users/:id endpoint with validation schema, adds tests for user and register routes, and applies security middlewares (helmet, hpp, cors) to the server. Also adds ESLint configuration and updates logger with linting comments.
8 lines
173 B
ReStructuredText
8 lines
173 B
ReStructuredText
POST http://localhost:3000/register HTTP/1.1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"email": "johndoe@exemple.com",
|
|
"username": "johndoe",
|
|
"password": "Password123"
|
|
} |