add modifications of sub-generator :endpoint

The sub-generator :endpoint modifies: server/routes.js 
 +app.use('/api/messages', require('./api/message');