From 88446ffa9bce92e5616e59412c5176457b3b1c7e Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Thu, 28 Mar 2019 15:00:22 +0000 Subject: [PATCH] Merge pull request #1677 from sharelatex/spd-hide-heapdump Move 'heapdump' endpoint to private API router GitOrigin-RevId: 581cc13b60ee944b3e1ad21a973d70ebab606a5b --- services/web/app/coffee/infrastructure/Server.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/infrastructure/Server.coffee b/services/web/app/coffee/infrastructure/Server.coffee index 9bbbff6554..fef81cdda9 100644 --- a/services/web/app/coffee/infrastructure/Server.coffee +++ b/services/web/app/coffee/infrastructure/Server.coffee @@ -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