aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-23 21:03:54 -0800
committerAdam Soltys <[email protected]>2024-02-23 21:03:54 -0800
commitd5d15b1a9f89e7cf621faf96d11e2fd139037a54 (patch)
treed4e978decb423dcf3fa9b0985c8f5189e18adb7f /index.js
parent0af4df3e3dea05063fe392a06772771ea79483a4 (diff)
downloadcoinos-server-d5d15b1a9f89e7cf621faf96d11e2fd139037a54.tar.gz
coinos-server-d5d15b1a9f89e7cf621faf96d11e2fd139037a54.zip
admin endpoints
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.js b/index.js
index 0564ea9e..cd5781ae 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
import app from "$lib/app";
-import { auth, optional } from "$lib/auth";
+import { auth, admin, optional } from "$lib/auth";
import { fillPool } from "$lib/nostr";
import { listenForLightning } from "$lib/lightning";
@@ -113,6 +113,9 @@ app.post("/requests/delete", auth, requests.destroy);
app.post("/shopify/:id", shopify);
+app.post("/hidepay", admin, users.hidepay);
+ app.post("/unlimit", admin, users.unlimit);
+
let host = process.env.HOST || "0.0.0.0";
let port = process.env.PORT || 3119;