From aecec231b6d94b0707b840a7153bd05a057f49c7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 20 Dec 2022 20:26:01 +0000 Subject: nip5 --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'index.js') diff --git a/index.js b/index.js index c4c6ebc6..84554422 100644 --- a/index.js +++ b/index.js @@ -40,6 +40,12 @@ app.post('/echo', optionalAuth, async (req, res) => { res.send(req.body); }); +app.get('/nostr.json', async (req, res) => { + res.send({ + names: { adam: "566c166f3adab0c8fba5da015b0b3bcc8eb3696b455f2a1d43bfbd97059646a8", asoltys: "566c166f3adab0c8fba5da015b0b3bcc8eb3696b455f2a1d43bfbd97059646a8" } + }); +}); + app.listen({ host, port }, (e, address) => { e && err(e) && process.exit(1); l(`CoinOS Server listening on ${address}`); -- cgit v1.2.3