generated rest routes from controllers for express.js