curl https://wizardly-wing-66188a.netlify.com/.netlify/functions/jokes
https://wizardly-wing-66188a.netlify.com/.netlify/functions/server
Full disclosure: I collected jokes from these sources initially;
- 15Dkatz/offical_joke_api
- mikemcbride/dad-jokes
- ChrisMcKenzie/dadjokes
- Icanhazdadjoke
- The Oatmeal DJTAF
Submit a Pull Request, with your joke added to the jokes.js file. Make sure the joke is in this format:
{
"joke": "your joke's setup line",
"punchline": "your joke's punchline"
}
{
"joke": "your joke's setup line",
"punchline": null
}
- Clone the repo
- Follow steps here, https://www.netlify.com/docs/functions/#tools-for-building-javascript-functions