Break API endpoints out into a separate file.

Review Request #7486 — Created July 3, 2015 and discarded

Information

student-sonar
master

Reviewers

In preparation for a more extensive API, this moves the API endpoints into a
separate file. This also adds the 'body-parser' middleware that will make it
easier to accept POST data.

Clicked around and verified that everything still worked as expected.

reviewbot
  1. Tool: PEP8 Style Checker
    Ignored Files:
        package.json
        lib/api.js
        lib/routes.js
        server.js
    
    
    
    Tool: Pyflakes
    Ignored Files:
        package.json
        lib/api.js
        lib/routes.js
        server.js
    
    
  2. 
      
david
Review request changed
Status:
Discarded