Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
-
import express from
|
| 2 |
|
| 3 |
const app = express();
|
| 4 |
const port = 7860;
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
});
|
| 17 |
|
| 18 |
app.listen(port, () => {
|
|
|
|
| 1 |
+
import express from "express";
|
| 2 |
|
| 3 |
const app = express();
|
| 4 |
const port = 7860;
|
| 5 |
|
| 6 |
+
app.get('/', async (req, res) => {
|
| 7 |
+
res.send(
|
| 8 |
+
`Running Node.js ${
|
| 9 |
+
(
|
| 10 |
+
await import('express/package.json', {
|
| 11 |
+
with: { type: 'json' },
|
| 12 |
+
})
|
| 13 |
+
).default.version
|
| 14 |
+
} with Express.js ${process.version.split('.')[0].replace('v', '')}`,
|
| 15 |
+
);
|
| 16 |
});
|
| 17 |
|
| 18 |
app.listen(port, () => {
|