'use strict';

var express = require('express');

/*
 * Require Some Controller
 */
// var controller = require()

module.exports = function(app) {

  var router = express.Router()

/*
 * Routing logic
 */

  // router.get('/', controller.index )
  // router.post('/', controller.create )
  // router.get('/:param', controller.show )
  // router.put('/:param', controller.update )
  // router.delete('/:param', controller.delete )

  app.use('/api/<%= names.slug %>', router)
};
;(function(){
    'use strict';

    var express = require('express');

    /*
     * Require Some Controller
     */

    // var controller = require()

    /**
     * [exports description]
     * @param  {[type]} app [description]
     * @return {[type]}     [description]
     */
    module.exports = function(app) {

      var router = express.Router()

      /*
       * Routing logic
       */

      // router.get('/', controller.index )
      // router.post('/', controller.create )
      // router.get('/:param', controller.show )
      // router.put('/:param', controller.update )
      // router.delete('/:param', controller.delete )

      app.use('/api/<%= names.slug %>', router)
    };

}).call(this);
Update server-route sub-generator; Refactor Code, wrap in IFFE
Update server-route sub-generator;
Refactor Code, wrap in IFFE
