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