Added JSON body parser to API routes.