mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
added comments
This commit is contained in:
parent
c6c830ef74
commit
ee5e096984
1 changed files with 10 additions and 0 deletions
|
|
@ -54,6 +54,16 @@ class Images {
|
|||
if (!result) return null;
|
||||
|
||||
//TODO latency issues -> images > 20
|
||||
// USE pagination
|
||||
/*
|
||||
app.get('/images', (req, res) => {
|
||||
const page = parseInt(req.query.page) || 1;
|
||||
const limit = parseInt(req.query.limit) || 10;
|
||||
|
||||
const images = getImagesFromDatabase(page, limit);
|
||||
res.json(images);
|
||||
});
|
||||
*/
|
||||
const imagesName = result.map(image => ({
|
||||
id: image.id,
|
||||
file_name: image.file_name,
|
||||
|
|
|
|||
Loading…
Reference in a new issue