Protected route that returns the user object from the request body when the session is valid. Requires authentication and appropriate role middleware.
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
| Content-Type | string | Yes | application/json |
| Field | Type | Required | Description |
|---|---|---|---|
| user | object | Yes | User object to validate |