diff --git a/index.js b/index.js index 63e1bcf..2758bda 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ function alldata(request, response) { app.get('/api/:auth/database/:element/', searchElement); -function searchElement(request, response) { +async function searchElement(request, response) { var token = request.params.auth; authenticate(token)