aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-26 22:18:56 -0700
committerAdam Soltys <[email protected]>2024-08-26 22:53:11 -0700
commit4efa82b36b74c633681ed831d6f567ae5ab08c3b (patch)
tree5c79e477a733e82f44185488e9fdc30653aacff9 /index.ts
parentfe62cadd6fb4a7e49f7d59401fc74ae0411e32a7 (diff)
downloadcoinos-server-4efa82b36b74c633681ed831d6f567ae5ab08c3b.tar.gz
coinos-server-4efa82b36b74c633681ed831d6f567ae5ab08c3b.zip
fix some ts issues
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts11
1 files changed, 2 insertions, 9 deletions
diff --git a/index.ts b/index.ts
index a0f35738..8ebcb1d0 100644
--- a/index.ts
+++ b/index.ts
@@ -17,11 +17,9 @@ import invoices from "$routes/invoices";
import items from "$routes/items";
import users from "$routes/users";
import payments from "$routes/payments";
-import requests from "$routes/requests";
import shopify from "$routes/shopify";
try {
- // setTimeout(fillPool, 1000);
getLocations();
getFx();
catchUp();
@@ -98,11 +96,6 @@ app.post("/items", auth, items.create);
app.post("/items/delete", auth, items.del);
app.post("/items/sort", auth, items.sort);
-app.get("/request/:id", auth, requests.get);
-app.get("/requests", auth, requests.list);
-app.post("/requests", auth, requests.create);
-app.post("/requests/delete", auth, requests.destroy);
-
app.post("/shopify/:id", shopify);
app.post("/hidepay", admin, users.hidepay);
@@ -114,8 +107,8 @@ app.post("/claim", auth, ecash.claim);
app.post("/mint", auth, ecash.mint);
app.post("/melt", auth, ecash.melt);
-let host = process.env["HOST"] || "0.0.0.0";
-let port = process.env["PORT"] || 3119;
+let host: string = process.env["HOST"] || "0.0.0.0";
+let port: number = parseInt(process.env["PORT"]) || 3119;
app.listen({ host, port });