Update index.js

This commit is contained in:
Killer Boss Original 2022-07-08 19:57:54 +02:00 committed by GitHub
parent 27c05cbb0a
commit 008eec6e1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);