api: add src

This commit is contained in:
Flummi 2018-06-04 13:20:44 +00:00
parent 45a35eb5f9
commit c4bd1d6553

View File

@ -329,7 +329,7 @@ function Websrv(tlib) {
if(query.length === 0)
return res.end('type not found', 'utf-8');
lib.sql.query("select `id`, `mime`, `size`, `username`, `userchannel`, `usernetwork`, `stamp`, `dest` from `f0ck`.`items` " + query, (err, rows, fields) => {
lib.sql.query("select `id`, `mime`, `size`, `username`, `userchannel`, `usernetwork`, `stamp`, `dest`, `src` from `f0ck`.`items` " + query, (err, rows, fields) => {
if(err || rows.length === 0)
return res.end('no results', 'utf-8');
res.end(JSON.stringify( rows[0] ), 'utf-8');