Replit Database - How do I return the list of keys as JSON?
Seven7Four4

Hello there,
I'm trying to make a submit system in Express, but I need it to be returned as a JSON.
I tried this:

but everytime i make a GET request to /getDataBase, it doesn't return anything. Could anyone help?
Thanks!

You are viewing a single comment. View All
Coder100

oh i see, your db must have had an error, or ctr == keys.length was never met. @Seven7Four4