Commit Β·
c9cff96
1
Parent(s): 0a536c9
Enable server listening on port 5000 and log server and Swagger documentation URLs
Browse files- src/server.ts +6 -6
src/server.ts
CHANGED
|
@@ -38,10 +38,10 @@ app.use("/docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument));
|
|
| 38 |
app.use(notFoundHandler);
|
| 39 |
app.use(errorHandler);
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
|
| 47 |
-
module.exports = app;
|
|
|
|
| 38 |
app.use(notFoundHandler);
|
| 39 |
app.use(errorHandler);
|
| 40 |
|
| 41 |
+
const PORT = 5000;
|
| 42 |
+
app.listen(PORT, () => {
|
| 43 |
+
console.log(`π Server running at http://localhost:${PORT}`);
|
| 44 |
+
console.log(`π Swagger docs available at http://localhost:${PORT}/docs`);
|
| 45 |
+
});
|
| 46 |
|
| 47 |
+
// module.exports = app;
|