mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-25 01:00:58 +00:00
Merge pull request #1677 from sharelatex/spd-hide-heapdump
Move 'heapdump' endpoint to private API router GitOrigin-RevId: 581cc13b60ee944b3e1ad21a973d70ebab606a5b
This commit is contained in:
parent
ce556499c0
commit
88446ffa9b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue