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