improve index.html interface with ninja template
This commit is contained in:
@ -163,7 +163,7 @@ app.get("/sensordata/:id", (req, res) => {
|
||||
});
|
||||
|
||||
app.get("/sensors", (req, res) => {
|
||||
const sql = `SELECT id FROM sensor_data`;
|
||||
const sql = `SELECT id FROM sensor_data ORDER BY id ASC`;
|
||||
|
||||
db.query(sql, (err, results) => {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user