Skip to content

Commit

Permalink
Tue Nov 12 12:41:16 MST 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Nov 12, 2019
1 parent 7ae3391 commit e64ae6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
@@ -1,6 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#1b51e7",
"activityBar.activeBorder": "#f06f91",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#f06f91",
Expand Down
8 changes: 4 additions & 4 deletions src/routes/images.json.js
@@ -1,9 +1,9 @@
const fs = require("fs").promises
const path = require("path")
const fs = require("fs").promises;
const path = require("path");

export async function get(req, res, next) {
const images = await fs.readdir(
path.join(__dirname, `../../../static/images`)
)
res.end(JSON.stringify(images.map(image => `images/${image}`)))
);
res.end(JSON.stringify(images.map(image => `images/${image}`).reverse()));
}

0 comments on commit e64ae6d

Please sign in to comment.