update sample for nodejs

This commit is contained in:
wing328
2015-10-08 23:57:14 +08:00
parent 8e9e3a6171
commit 725df15dd5
2 changed files with 6 additions and 6 deletions

View File

@@ -31,8 +31,8 @@ swaggerTools.initializeMiddleware(swaggerDoc, function (middleware) {
app.use(middleware.swaggerUi());
// Start the server
http.createServer(app).listen(8080, function () {
console.log('Your server is listening on port %d (http://localhost:%d)', 8080, 8080);
console.log('Swagger-ui is available on http://localhost:%d/docs', 8080);
http.createServer(app).listen(serverPort, function () {
console.log('Your server is listening on port %d (http://localhost:%d)', serverPort, serverPort);
console.log('Swagger-ui is available on http://localhost:%d/docs', serverPort);
});
});
});