aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.js b/index.js
index c5190c7d..04a6e228 100644
--- a/index.js
+++ b/index.js
@@ -9,6 +9,7 @@ import { getRates } from "$lib/rates";
import { sendHeartbeat } from "$lib/sockets";
import { err } from "$lib/logging";
+import ecash from "$routes/ecash";
import email from "$routes/email";
import info from "$routes/info";
import locations from "$routes/locations";
@@ -117,6 +118,8 @@ app.post("/shopify/:id", shopify);
app.post("/hidepay", admin, users.hidepay);
app.post("/unlimit", admin, users.unlimit);
+app.post("/mint", auth, ecash.mint);
+
let host = process.env.HOST || "0.0.0.0";
let port = process.env.PORT || 3119;