*timestamp
This commit is contained in:
parent
cc8dc9b37e
commit
89ef3de313
@ -244,7 +244,7 @@ function Websrv(tlib) {
|
||||
else if(url[2] == "latest") {
|
||||
lib.sql.query("select max(stamp) from `f0ck`.`items` limit 1", (err, rows) => {
|
||||
res.writeHead(200, { 'Content-Type': 'application/json' });
|
||||
res.end(JSON.stringify({latest: rows[0].id}), 'utf-8');
|
||||
res.end(JSON.stringify({latest: rows[0].stamp}), 'utf-8');
|
||||
});
|
||||
}
|
||||
else if(url[2] == "p" && Number.isInteger(parseInt(url[3]))) { // pagination
|
||||
|
Loading…
Reference in New Issue
Block a user