This commit is contained in:
Killer Boss Original 2022-07-09 23:15:48 +02:00 committed by GitHub
parent 4085416c42
commit 95aa134210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ async function authenticate(token, response, what) {
console.log(token + ' do '+ what) console.log(token + ' do '+ what)
} }
} }
/*
// All dates in the database // All dates in the database
app.get('/api/:auth/database', alldata); app.get('/api/:auth/database', alldata);
@ -102,7 +102,12 @@ async function searchElement(request, response) {
} }
// Set a db variable // 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) => { app.post('/api/:auth/database/:element/set/:data', async (request, response) => {
var token = request.params.auth; var token = request.params.auth;
var element = request.params.element; var element = request.params.element;
@ -176,3 +181,4 @@ async function remove(request, response) {
response.send(reply); response.send(reply);
} }
*/