mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-23 01:22:03 -07:00
Add GET /users route
This commit is contained in:
@@ -21,3 +21,8 @@ export async function createUser(ctx) {
|
||||
ctx.throw(422, err)
|
||||
}
|
||||
}
|
||||
|
||||
export async function getUsers (ctx) {
|
||||
const users = await User.find({}, '-password -salt')
|
||||
ctx.body = users
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user