diff --git a/netlify/functions/jokes.json b/netlify/functions/data/jokes.json similarity index 100% rename from netlify/functions/jokes.json rename to netlify/functions/data/jokes.json diff --git a/netlify/functions/joke.js b/netlify/functions/joke.js index a07759a..826e21b 100644 --- a/netlify/functions/joke.js +++ b/netlify/functions/joke.js @@ -1,5 +1,5 @@ // Jokes provided from the lovely folks at https://icanhazdadjoke.com -import jokes from './jokes.json' +import jokes from './data/jokes.json' export const handler = async () => { // Generates a random index based on the length of the jokes array