From 95aa13421086efaef863daa23eaa6924680979de Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Sat, 9 Jul 2022 23:15:48 +0200 Subject: [PATCH] d --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4a3e660..75cbefb 100644 --- a/index.js +++ b/index.js @@ -59,7 +59,7 @@ async function authenticate(token, response, what) { console.log(token + ' do '+ what) } } - +/* // All dates in the database app.get('/api/:auth/database', alldata); @@ -102,7 +102,12 @@ async function searchElement(request, response) { } // Set a db variable +*/ +app.post('/api/database/set', async (request, response) => { + response.send(reply); +}); +/* app.post('/api/:auth/database/:element/set/:data', async (request, response) => { var token = request.params.auth; var element = request.params.element; @@ -176,3 +181,4 @@ async function remove(request, response) { response.send(reply); } +*/ \ No newline at end of file