Epikcoder
commited on
Commit
·
bb616dd
1
Parent(s):
9ef279c
- api/index.js +6 -4
api/index.js
CHANGED
@@ -104,11 +104,13 @@ app.get("/", async (req, res) => {
|
|
104 |
// });
|
105 |
// res.send(arr)
|
106 |
// });
|
|
|
107 |
res.send(req.headers)
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
112 |
})
|
113 |
|
114 |
app.listen(port, () => {
|
|
|
104 |
// });
|
105 |
// res.send(arr)
|
106 |
// });
|
107 |
+
const murl = req.headers.x-vercel-deployment-url || res.headers.referrer || req.headers.host
|
108 |
res.send(req.headers)
|
109 |
+
res.json({madeBy: "@EpikCoder", mainurl: murl, routes: [
|
110 |
+
murl + "/image",
|
111 |
+
murl + "/api",
|
112 |
+
murl + "/video"
|
113 |
+
]})
|
114 |
})
|
115 |
|
116 |
app.listen(port, () => {
|