From 3c01f273ad10f69d0f305f8f3e5e38748bc38c46 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 1 Oct 2021 14:52:53 +0200 Subject: [PATCH] proxy --- packages/ipfs-api/src/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ipfs-api/src/server.ts b/packages/ipfs-api/src/server.ts index 2aac9aa5..273237b3 100644 --- a/packages/ipfs-api/src/server.ts +++ b/packages/ipfs-api/src/server.ts @@ -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