Skip to content

Commit 725df15

Browse files
committed
update sample for nodejs
1 parent 8e9e3a6 commit 725df15

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

samples/server/petstore/nodejs/controllers/StoreService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.placeOrder = function(body) {
2424
"complete" : true,
2525
"status" : "aeiou",
2626
"quantity" : 123,
27-
"shipDate" : "2015-09-03T14:34:08.343+0000"
27+
"shipDate" : "2015-10-08T15:56:08.367+0000"
2828
};
2929

3030

@@ -43,7 +43,7 @@ exports.getOrderById = function(orderId) {
4343
"complete" : true,
4444
"status" : "aeiou",
4545
"quantity" : 123,
46-
"shipDate" : "2015-09-03T14:34:08.347+0000"
46+
"shipDate" : "2015-10-08T15:56:08.371+0000"
4747
};
4848

4949

samples/server/petstore/nodejs/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ swaggerTools.initializeMiddleware(swaggerDoc, function (middleware) {
3131
app.use(middleware.swaggerUi());
3232

3333
// Start the server
34-
http.createServer(app).listen(8080, function () {
35-
console.log('Your server is listening on port %d (http://localhost:%d)', 8080, 8080);
36-
console.log('Swagger-ui is available on http://localhost:%d/docs', 8080);
34+
http.createServer(app).listen(serverPort, function () {
35+
console.log('Your server is listening on port %d (http://localhost:%d)', serverPort, serverPort);
36+
console.log('Swagger-ui is available on http://localhost:%d/docs', serverPort);
3737
});
38-
});
38+
});

0 commit comments

Comments
 (0)