aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-20 17:42:12 -0800
committerAdam Soltys <[email protected]>2022-12-20 17:42:12 -0800
commita574285fe3b1de4fdfda342ed287bbc53a57400a (patch)
tree65193ad7345932d47aff9e007e66536670abf87f /index.js
parentaa662369cc7a293d0be5f4d419543a51ad40a7bc (diff)
parentaecec231b6d94b0707b840a7153bd05a057f49c7 (diff)
downloadcoinos-server-a574285fe3b1de4fdfda342ed287bbc53a57400a.tar.gz
coinos-server-a574285fe3b1de4fdfda342ed287bbc53a57400a.zip
Merge remote-tracking branch 'origin/prod'
Diffstat (limited to 'index.js')
-rw-r--r--index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.js b/index.js
index d83afd91..e77ba2a8 100644
--- a/index.js
+++ b/index.js
@@ -41,6 +41,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}`);