From d5d15b1a9f89e7cf621faf96d11e2fd139037a54 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 23 Feb 2024 21:03:54 -0800 Subject: admin endpoints --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'index.js') 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; -- cgit v1.2.3