forked from loafle/openapi-generator-original
update sample for nodejs
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user