diff --git a/index.js b/index.js index d8d308b..4a3e660 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ async function searchElement(request, response) { // Set a db variable -app.put('/api/:auth/database/:element/set/:data', async (request, response) => { +app.post('/api/:auth/database/:element/set/:data', async (request, response) => { var token = request.params.auth; var element = request.params.element; var data = request.params.data;