diff options
| author | Adam Soltys <[email protected]> | 2024-02-23 21:03:54 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-23 21:03:54 -0800 |
| commit | d5d15b1a9f89e7cf621faf96d11e2fd139037a54 (patch) | |
| tree | d4e978decb423dcf3fa9b0985c8f5189e18adb7f /index.js | |
| parent | 0af4df3e3dea05063fe392a06772771ea79483a4 (diff) | |
| download | coinos-server-d5d15b1a9f89e7cf621faf96d11e2fd139037a54.tar.gz coinos-server-d5d15b1a9f89e7cf621faf96d11e2fd139037a54.zip | |
admin endpoints
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |
