feat(sourcemaps-reader): health check endpoint
This commit is contained in:
parent
623af2a406
commit
fb4f20d00e
1 changed files with 5 additions and 1 deletions
|
|
@ -8,7 +8,11 @@ const PORT = process.env.SR_PORT || 9000;
|
|||
|
||||
const app = express();
|
||||
app.use(request_logger("[SR]"));
|
||||
|
||||
app.get(['/'], (req, res) => {
|
||||
res.statusCode = 200;
|
||||
res.end("ok!");
|
||||
}
|
||||
);
|
||||
app.use('/sourcemaps', sourcemapsReaderServer);
|
||||
app.use('/heapdump', dumps.router);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue