TheFakeHamma / random-quote-generator

Side project for fun
MIT License
0 stars 0 forks source link

Implement API to Serve Quotes #9

Open TheFakeHamma opened 2 months ago

TheFakeHamma commented 2 months ago

Description:
Implement an API endpoint to serve random quotes.

Steps:

  1. Define an array quotes with a few dummy quotes.
  2. Add a route /quote that sends a random quote from the quotes array as a JSON response.
  3. Enable CORS to allow requests from the frontend.
  4. Test the endpoint using a tool like Postman or by visiting http://localhost:3000/quote in the browser.