feat(utilities): protected heap-snapshot endpoints
This commit is contained in:
parent
e31dd82b92
commit
d285310852
1 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ function createNewHeapSnapshot(req, res) {
|
|||
res.end(JSON.stringify({path: location + fileName, 'done': creationStatus}));
|
||||
}
|
||||
|
||||
router.get('/status', getHeapSnapshotStatus);
|
||||
router.get(`/new`, createNewHeapSnapshot);
|
||||
router.get(`/download`, downloadHeapSnapshot);
|
||||
router.get(`/${process.env.S3_KEY}/status`, getHeapSnapshotStatus);
|
||||
router.get(`/${process.env.S3_KEY}/new`, createNewHeapSnapshot);
|
||||
router.get(`/${process.env.S3_KEY}/download`, downloadHeapSnapshot);
|
||||
module.exports = {router}
|
||||
Loading…
Add table
Reference in a new issue