Skip to content

Commit

Permalink
Merge pull request #34 from decentldotland/prep
Browse files Browse the repository at this point in the history
chore: additional path for `/ota` of `ar` molecule
  • Loading branch information
charmful0x authored Feb 12, 2023
2 parents 540b496 + 4b90e74 commit e173c30
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ app.get("/ota/:pubkey", async (req, res) => {
}
});

app.get("/ar-ota/:pubkey", async (req, res) => {
try {
res.setHeader("Content-Type", "application/json");

const address = await ownerToAddress(req.params?.pubkey);
res.send({ address });
return;
} catch (error) {
res.send({ address: null });
return;
}
});


app.get("/signer/:address/:message/:signature", async (req, res) => {
try {
res.setHeader("Content-Type", "application/json");
Expand Down

0 comments on commit e173c30

Please sign in to comment.