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

View File

@ -34,9 +34,9 @@ require("dotenv").config();
return handleGetLink(req, res, recordsDB);
});
app.get("/ipfs/name/resolve/:name", async (req: Request, res: Response) => {
app.get("/ipfs/name/resolve/:name", (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();
return got.post(`${IPFS_INTERNAL_API}/api/v0/name/resolve?arg=${req.params.name}`).json();
});
// start the server