From 008eec6e1d5e4818b1678d2d4718a7e9f04009b2 Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Fri, 8 Jul 2022 19:57:54 +0200 Subject: [PATCH] Update index.js --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 186277a..af37f7d 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ async function searchElement(request, response) { // Set a db variable -app.get('/api/:auth/database/:element/set/:data', set); +app.put('/api/:auth/database/:element/set/:data', set); async function set(request, response) { var token = request.params.auth; @@ -129,7 +129,7 @@ async function set(request, response) { response.send(reply); } -// Set a db variable +// Remove a db variable app.get('/api/:auth/database/:element/remove', remove); @@ -153,4 +153,4 @@ async function remove(request, response) { } response.send(reply); -} \ No newline at end of file +}