[server][api] change change /users/list response structure

This commit is contained in:
Abhishek Shroff
2024-11-06 23:50:06 +05:30
parent 0dd716ca55
commit 309d8961f0

View File

@@ -15,5 +15,7 @@ func handleUsersListRoute(c *gin.Context) {
if err != nil {
panic(err)
}
c.JSON(200, users)
c.JSON(200, gin.H{
"users": users,
})
}