module.exports = function (room) {
    room.url = "http://localhost:9020/api/rooms/"+room.getOwner() + "/" + room.getName();
    return room;
};
module.exports = function (room) {

    var json = room.toJSON();
    json.url = "http://localhost:9030/api/rooms/"+room.getOwner() + "/" + room.getName();
    return json;
};
use toJSON for room