ATLBitLab / twelvecash

API for creating BIP-353 usernames
https://twelve.cash
MIT License
22 stars 5 forks source link

Fix duplicates v1 txt records #24

Closed chdwlch closed 3 months ago

chdwlch commented 3 months ago
# create bip353
curl -X POST http://localhost:3000/record -H "Content-Type: application/json" -d  '{"localPart": "cw-test-72", "bolt12": "lno....1234567890"}'
{"message":"Bolt12 Address Created"

# duplicate with same values
curl -X POST http://localhost:3000/record -H "Content-Type: application/json" -d  '{"localPart": "cw-test-72", "bolt12": "lno....1234567890"}'
{"message":"Name is already taken."}

# duplicate with different values
curl -X POST http://localhost:3000/record -H "Content-Type: application/json" -d  '{"localPart": "cw-test-72", "bolt12": "lno....12345678901"}'
{"message":"Name is already taken."}
netlify[bot] commented 3 months ago

Deploy Preview for twelvecash ready!

Name Link
Latest commit 4efb32d0431088d67655dbf2216e60148cc8c299
Latest deploy log https://app.netlify.com/sites/twelvecash/deploys/669697b72fe970000885b8a6
Deploy Preview https://deploy-preview-24--twelvecash.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.