Retrieves a random fortune cookie and returns it via JSON.
Request:
GET /api/fortune
Response (application/json):
{ "fortune":"If you waste your time cooking, you'll miss the next meal." }
Retrieves a random fortune cookie from within the selected category.
Valid categories are: all, bible, computers, cookie, definitions, miscellaneous, people, platitudes, politics, science, and wisdom.
Request:
GET /api/fortune/[category]
Eg: GET /api/fortune/wisdom
Response:
same as previous method