first
This commit is contained in:
parent
1b8679b2ba
commit
426b12c476
@ -254,14 +254,15 @@ function Websrv(tlib) {
|
||||
lib.sql.query("select * from `f0ck`.`items` where `stamp` < ? order by `stamp` desc limit ?", [stamp, eps], (err, rows) => {
|
||||
var items = {
|
||||
"items": [],
|
||||
"latest": stamp
|
||||
"first": stamp,
|
||||
"latest": 0
|
||||
};
|
||||
rows.forEach(e => {
|
||||
items.items.push({
|
||||
id: e.id,
|
||||
mime: e.mime
|
||||
});
|
||||
items.latest = e.id;
|
||||
items.latest = e.stamp;
|
||||
});
|
||||
res.writeHead(200, { 'Content-Type': 'text/html' });
|
||||
res.end(JSON.stringify(items), 'utf-8');
|
||||
|
Loading…
Reference in New Issue
Block a user