"use strict";
// {{ scaffold.name }} service
let stackhut = require('./stackhut');

// create each service as either an ES6 class or an object of functions
class Default(Service){
    constructor(){
        // empty
    }

    add(x, y){
        let res = x + y;
        return Promise.resolve(res);
    }
}

// export the services here
module.exports = {
    Default : new Default()
};

"use strict";
// {{ scaffold.name }} service
let stackhut = require('./stackhut');

// create each service as either an ES6 class or an object of functions
class Default extends stackhut.Service {
    constructor() {
        super();
        // empty
    }

    add(x, y){
        let res = x + y;
        return Promise.resolve(res);
    }
}

// export the services here
module.exports = {
    Default : new Default()
};

Change node skeleton