API for sharing Christmas messages, written in TypeScript using Hono and SQL :3
New message
/api/messages/newapplication/jsoncurl -X POST https://christmas-message-api.n5lyh9.workers.dev/api/messages/new \
-H "content-type: application/json" \
-d '{"message":"Merry Christmas and a Happy New Year!", "author":"Some1","recipient":"Bob"}'
Read message
api/messages/<id>/<recipient name>application/jsoncurl https://christmas-message-api.n5lyh9.workers.dev/api/messages/1/Bob
Update message
/api/messages/update/<id>/<recipient name>application/jsonapplication/jsoncurl -X POST https://christmas-message-api.n5lyh9.workers.dev/api/messages/update/1 \
-H "content-type: application/json" \
-d '{"message":"Oops, Christmas passed, but Happy New Year!", "recipient":"Bob"}'