mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-05-11 22:50:24 -05:00
Added a default value to the tests#list method
This commit is contained in:
@@ -4,7 +4,7 @@ const pauseController = require('../controller/pause');
|
||||
|
||||
// List all speedtests
|
||||
app.get("/", async (req, res) => {
|
||||
res.json(await tests.list());
|
||||
res.json(await tests.list(req.query.hours || 24));
|
||||
});
|
||||
|
||||
// Runs a speedtest
|
||||
|
||||
Reference in New Issue
Block a user