Add gifs
This commit is contained in:
parent
0f7a7b44b1
commit
362044a1ab
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -28,7 +28,7 @@ app.get("/api/v1/randomIMG*", (req, res) => {
|
||||||
var dirContent = fs.readdirSync(path.join(directory, folder))
|
var dirContent = fs.readdirSync(path.join(directory, folder))
|
||||||
|
|
||||||
var files = []
|
var files = []
|
||||||
var imageFormats = [".png", ".jpg", ".jpeg", ".webp"]
|
var imageFormats = [".png", ".jpg", ".jpeg", ".webp", ".gif"]
|
||||||
for (let index = 0; index < dirContent.length; index++) {
|
for (let index = 0; index < dirContent.length; index++) {
|
||||||
const file = dirContent[index];
|
const file = dirContent[index];
|
||||||
for (let index = 0; index < imageFormats.length; index++) {
|
for (let index = 0; index < imageFormats.length; index++) {
|
||||||
|
|
Loading…
Reference in a new issue