""refactor"" basically everything
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { app } = require("../index.js")
|
||||
import { app } from "../index.js"
|
||||
|
||||
app.get("/api/ip", (rreq,rres) => {
|
||||
let jsonResponse = {
|
||||
@@ -6,7 +6,6 @@ app.get("/api/ip", (rreq,rres) => {
|
||||
"Country": rreq.get("cf-ipcountry") || "not_cloudflare",
|
||||
"CfRay": rreq.get("cf-ray") || "not_cloudflare"
|
||||
}
|
||||
|
||||
rres.send(jsonResponse)
|
||||
})
|
||||
|
||||
@@ -14,4 +13,4 @@ app.get("/api/headers", (rreq,rres) => {
|
||||
rres.send(rreq.headers)
|
||||
})
|
||||
|
||||
module.exports = {app}
|
||||
export { app }
|
||||
Reference in New Issue
Block a user