aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-17 09:17:17 -0800
committerAdam Soltys <[email protected]>2023-01-17 09:17:17 -0800
commit220d6d52b8439a81b572a889d7012f826efc55c5 (patch)
treebfb924033a067459555ae3e7a8e015c4ca59ad00 /index.js
parentd7d006b89bcf076d9f8345f5cfd35ef48a658ef2 (diff)
downloadcoinos-server-220d6d52b8439a81b572a889d7012f826efc55c5.tar.gz
coinos-server-220d6d52b8439a81b572a889d7012f826efc55c5.zip
fix rates
Diffstat (limited to 'index.js')
-rw-r--r--index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.js b/index.js
index 7d4aa135..4a8fb01a 100644
--- a/index.js
+++ b/index.js
@@ -60,10 +60,10 @@ app.post("/password", auth, users.password);
app.post("/otpsecret", auth, users.otpsecret);
app.get("/contacts", auth, users.contacts);
-app.get("/request/:id", requests.get);
-app.get("/requests", requests.list);
-app.post("/requests", requests.create);
-app.post("/requests/delete", requests.destroy);
+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);
let host = process.env.HOST || "0.0.0.0";
let port = process.env.PORT || 3119;