wraithan/funday — pull request #5 by joeyw (2012-09-14 10:36:50+00:00)
Title: Add read-only json api endpoints.

This commit adds read-only json api endpoints.

`GET /api/fundays.json`
Returns all fundays.

`GET /api/fundays/random.json`
Returns a random funday.

`GET /api/fundays/:id.json`
Returns a specific funday.

Sample response
```
[{
"id": 18,
"name": "StarportCraft",
"description": "Terran players may only have 1 Barracks and 1 Factory working, the rest must be Starports.",
"video": "http://day9.tv/d/Day9/day9-daily-297-funday-monday-starportcraft/"
}]
```