This commit is contained in:
Karol Wypchlo 2021-10-01 14:41:01 +02:00
parent 229b9ab888
commit 643f96bcf0
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ require("dotenv").config();
});
app.get("/ipfs/name/resolve/:name", async (req: Request, res: Response) => {
console.log(`${IPFS_INTERNAL_API}/api/v0/name/resolve?arg=${req.params.name}`);
return await got.post(`${IPFS_INTERNAL_API}/api/v0/name/resolve?arg=${req.params.name}`).json();
});