vikarshana commited on
Commit
a3bdf80
·
verified ·
1 Parent(s): d2f6601

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -3
index.js CHANGED
@@ -147,13 +147,11 @@ app.get("/api/direct", async (req, res) => {
147
  },
148
  });
149
 
150
- if (response.status === 302 || response.status === 301) {
151
  const location = response.headers.get("location");
152
  res.json({
153
  status: true,
154
  location
155
- });
156
- }
157
  } catch (err) {
158
  res.status(500).json({ status: false, error: err.message });
159
  } finally {
 
147
  },
148
  });
149
 
 
150
  const location = response.headers.get("location");
151
  res.json({
152
  status: true,
153
  location
154
+ })
 
155
  } catch (err) {
156
  res.status(500).json({ status: false, error: err.message });
157
  } finally {