Compare commits
4 Commits
c233aa1cb3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58c5c97802 | ||
|
|
13fe3016f5 | ||
| 97318fefce | |||
|
|
88471f40ee |
8
index.js
8
index.js
@@ -1,4 +1,5 @@
|
||||
const express = require('express')
|
||||
const os = require('os');
|
||||
const app = express()
|
||||
const port = 3010
|
||||
|
||||
@@ -12,7 +13,12 @@ app.get('/status', (_, res) => {
|
||||
.json({
|
||||
environment: process.env.NODE_ENV ?? 'development',
|
||||
timeStamp: new Date(),
|
||||
status: 'ok'
|
||||
status: 'ok',
|
||||
server: {
|
||||
cpus: os.cpus().length,
|
||||
hostname: os.hostname(),
|
||||
freeMemory: os.freemem()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user