diff --git a/docs/REST.md b/docs/REST.md index 3f52bb7..2832a7e 100644 --- a/docs/REST.md +++ b/docs/REST.md @@ -77,7 +77,9 @@ The array will be wrapped in a JSON object under the key 'users'. ## /api/users/all -Same as above, but returns all users regardless of whether they are streaming. Also unfinished. +Same as above, but returns all users regardless of whether they are streaming and if they're streaming or not. Also unfinished. + +**Example**: `{users: [{username:"foo", title:"bar", live:1}] }` diff --git a/src/http.ts b/src/http.ts index fe02159..7474e5d 100644 --- a/src/http.ts +++ b/src/http.ts @@ -194,7 +194,7 @@ async function initAPI() { }); }); app.post('/api/users/all', (req, res) => { - let qs = 'SELECT username,title FROM user_meta'; + let qs = 'SELECT username,title,live FROM user_meta'; if(req.body.sort) { switch (req.body.sort) {