App routes and JSON responses.