Skip to content

Commit a047c66

Browse files
committedOct 18, 2017
Fix for basic example
1 parent cb0dbbe commit a047c66

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎examples/basic.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ server.register([Basic], function(err) {
6262
}
6363
],
6464
function(err) {
65+
6566
if (err) {
6667
console.log(err);
6768
}
69+
6870
server.route({
6971
method: 'PUT',
7072
path: '/v1/store/{id?}',
@@ -106,10 +108,12 @@ server.register([Basic], function(err) {
106108
}
107109
}
108110
});
111+
112+
server.start(function() {
113+
console.log('Server running at:', server.info.uri);
114+
});
115+
109116
}
110117
);
111118
});
112119

113-
server.start(function() {
114-
console.log('Server running at:', server.info.uri);
115-
});

0 commit comments

Comments
 (0)
Please sign in to comment.