diff options
Diffstat (limited to 'auth/index.js')
-rw-r--r-- | auth/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/auth/index.js b/auth/index.js index 9bc3f58..b726a25 100644 --- a/auth/index.js +++ b/auth/index.js @@ -9,6 +9,9 @@ const app = express.Router(); app.use("/", express.static(__dirname + "/public")); -app.get("/api/list", (req, res) => {}); +app.get("/api/list", async (req, res) => { + const users = await db.query("SELECT id, name, middlename, surname FROM users"); + res.json(users); +}); module.exports = app; |