This commit is contained in:
Killer Boss Original 2022-07-06 12:55:00 +02:00 committed by GitHub
parent 78cd255661
commit 20e6c4f0eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,19 @@ async function authenticate(token, response, what) {
} }
} }
/*
app.post('/', (req, res) => {
res.send('Got a POST request')
})
*/
app.post('/api/:auth/database', (req, res) => {
var token = request.params.auth;
authenticate(token, response, 'alldata')
res.send('elements')
})
/*
// All dates in the database // All dates in the database
app.get('/api/:auth/database', alldata); app.get('/api/:auth/database', alldata);
@ -146,3 +159,4 @@ async function remove(request, response) {
response.send(reply); response.send(reply);
} }
*/