This example is for database audit logs
Users are idenfied based on
Authorization
headers
npm install
npm run dev
curl localhost:3000/users
curl localhost:3000/users \
-X POST \
-H "Authorization: Bearer foo" \
-H "Content-Type: application/json" \
-d '{ "email": "[email protected]", "name": "John Doe" }'
curl localhost:3000/users/1 \
-X PATCH \
-H "Authorization: Bearer foo" \
-H "Content-Type: application/json" \
-d '{ "name": "Jane Doe" }'
curl localhost:3000/users/1 \
-X DELETE \
-H "Authorization: Bearer foo"