Commit Graph

23 Commits

Author SHA1 Message Date
Cadey Ratio 3a9314f8ca Revert "fix newest/last aired routes"
This reverts commit 8e92e1097e.
2016-04-22 06:17:42 -07:00
Christine Dodrill b0bd424056 typo 2016-01-16 08:07:44 -08:00
Christine Dodrill b4ec8adf9c Fix for Nim 0.12
Revert "fix"

This reverts commit f4bf5ebe0b.
2016-01-16 07:45:10 -08:00
Christine Dodrill 8e92e1097e fix newest/last aired routes 2015-11-28 16:57:07 -08:00
Christine Dodrill f4bf5ebe0b fix 2015-11-20 13:49:09 -08:00
Christine Dodrill e47a4da840 more episodes 2015-11-20 13:41:27 -08:00
Christine Dodrill 895f8011a7 Add IRC command as a catchall 2015-11-07 08:22:25 -08:00
Christine Dodrill 77ba95c811 update episode list 2015-10-15 11:50:13 -07:00
Christine Dodrill c050b65bbf Add X-API-Options documentation 2015-09-08 16:23:22 -07:00
Christine Dodrill 882b5b1551 Add new X-API-Options header for bare replies
Setting X-API-Options to bare will return unpacked values.

    $ curl --header "X-API-Options: bare" http://127.0.0.1:5000/last_aired
    {
        "name": "Do Princesses Dream of Magic Sheep?",
        "air_date": 1436628600,
        "season": 5,
        "episode": 13,
        "is_movie": false
    }
2015-09-08 15:48:06 -07:00
Christine Dodrill 791b7d59a0 Use a template for JSON rendering, etc 2015-09-08 15:20:22 -07:00
Christine Dodrill dc24fa6b48 Collect and report statistics about usage of the api server 2015-08-27 20:32:07 -07:00
Christine Dodrill 5d3a94bffa Show the time that the server was started in a HTTP header 2015-08-27 20:31:47 -07:00
Christine Dodrill 34682afd1e Update git rev checking 2015-08-17 14:47:34 -07:00
Christine Dodrill b5d36da2b6 Add /last_aired route
For @ask-compu
2015-08-17 14:32:05 -07:00
Christine Dodrill 24ef6f4c69 Show git commit hash of server in replies 2015-08-17 14:30:38 -07:00
Christine Dodrill 67c484ee19 split off episode manipulation code into its own module 2015-08-15 10:59:53 -07:00
Christine Dodrill d80166a420 List comprehensions are good, let's use them 2015-08-14 14:21:43 -07:00
Christine Dodrill 9489789334 Use `result`
It is idiomatic nim
2015-08-13 21:19:44 -07:00
Christine Dodrill e62d6877ad Send 406 on no search query 2015-08-13 20:56:02 -07:00
Christine Dodrill a3ea1ed922 implement remaining API calls 2015-08-13 20:51:03 -07:00
Christine Dodrill 162052d17b Serve /all 2015-08-13 19:47:00 -07:00
Christine Dodrill 71489f4f33 start nim rewrite 2015-08-13 19:20:23 -07:00