Added another route definition to custom API.
Refactored routes into routes.js.