aboutsummaryrefslogtreecommitdiff
path: root/auth/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'auth/index.js')
-rw-r--r--auth/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth/index.js b/auth/index.js
index bbe3589..69f6435 100644
--- a/auth/index.js
+++ b/auth/index.js
@@ -39,6 +39,9 @@ app.put("/api/password", async (req, res) => {
}
});
-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;