A Go implementation of the Open Heart Protocol.
GET https://openheart.tylery.com/example.com (200) POST https://openheart.tylery.com/example.com (201 | 200)
# curl curl -X POST -d "💖" https://openheart.tylery.com/example.com # fetch fetch('https://openheart.tylery.com/example.com', { method: 'POST', body: '💖' })
# curl curl -X POST \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "💖=" \ 'https://openheart.tylery.com/example.com' # fetch fetch('https://openheart.tylery.com/example.com', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: '💖=' })
# curl curl -X POST \ -H "Content-Type: application/json" \ -d '{"emoji": "💖"}' \ 'https://openheart.tylery.com/example.com' # fetch fetch('https://openheart.tylery.com/example.com', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ emoji: '💖' }) })
# curl curl 'https://openheart.tylery.com/example.com' # fetch fetch('https://openheart.tylery.com/example.com') # Response { "💖": 5, "👍": 3, "🌟": 1 }