Merge pull request #1677 from sharelatex/spd-hide-heapdump

Move 'heapdump' endpoint to private API router

GitOrigin-RevId: 581cc13b60ee944b3e1ad21a973d70ebab606a5b
This commit is contained in:
Simon Detheridge 2019-03-28 15:00:22 +00:00 committed by sharelatex
parent ce556499c0
commit 88446ffa9b

View file

@ -174,7 +174,7 @@ privateApiRouter.get "/profile", (req, res) ->
res.json(profile)
, time
app.get "/heapdump", (req, res)->
privateApiRouter.get "/heapdump", (req, res)->
require('heapdump').writeSnapshot '/tmp/' + Date.now() + '.web.heapsnapshot', (err, filename)->
res.send filename