aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-09-11 16:00:46 -0700
committerAdam Soltys <[email protected]>2025-09-11 16:00:52 -0700
commit66198815e79fbf38075e3b02dfdee31001e62fea (patch)
treee6f1f9d92625c6ff537f881ee4428f1329aed8c4 /index.ts
parent527991a523360bdd72a08acd9a0db2972ae8146b (diff)
downloadcoinos-server-66198815e79fbf38075e3b02dfdee31001e62fea.tar.gz
coinos-server-66198815e79fbf38075e3b02dfdee31001e62fea.zip
flash route
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.ts b/index.ts
index 02a6e0b5..0ca35ec5 100644
--- a/index.ts
+++ b/index.ts
@@ -141,7 +141,7 @@ app.post(
},
users.login,
);
-app.post("/printer", users.printer);
+app.post("/flash", users.flash);
app.get("/challenge", users.challenge);
app.post("/nostrAuth", users.nostrAuth);
app.get("/app/:pubkey", auth, users.app);
@@ -194,7 +194,7 @@ app.post("/echo", (req, res) => {
});
const host: string = process.env["HOST"] || "0.0.0.0";
-const port: number = parseInt(process.env["PORT"]) || 3119;
+const port: number = Number.parseInt(process.env["PORT"]) || 3119;
app.listen({ host, port });