Sends a 201 Created response with a JSON body. Use when a new resource has been successfully created.
201 Created
Express response object
The newly created resource or a confirmation payload
Created(res, { id: user.id, email: user.email, role: membership.role }) Copy
Created(res, { id: user.id, email: user.email, role: membership.role })
Sends a
201 Createdresponse with a JSON body. Use when a new resource has been successfully created.