Update index.js
This commit is contained in:
parent
27c05cbb0a
commit
008eec6e1d
1 changed files with 3 additions and 3 deletions
4
index.js
4
index.js
|
@ -103,7 +103,7 @@ async function searchElement(request, response) {
|
||||||
|
|
||||||
// Set a db variable
|
// 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) {
|
async function set(request, response) {
|
||||||
var token = request.params.auth;
|
var token = request.params.auth;
|
||||||
|
@ -129,7 +129,7 @@ async function set(request, response) {
|
||||||
response.send(reply);
|
response.send(reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set a db variable
|
// Remove a db variable
|
||||||
|
|
||||||
app.get('/api/:auth/database/:element/remove', remove);
|
app.get('/api/:auth/database/:element/remove', remove);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue