From 62c2937dac225df59d9bc14f74b7617c0808f24f Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:33:43 +0200 Subject: [PATCH] Merge pull request #18164 from overleaf/rd-remove-endpoints [web] Remove publicly accessible endpoints GitOrigin-RevId: c8e57faf6418274cac36b6e721c97a4ca70a1193 --- services/web/app/src/router.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/services/web/app/src/router.js b/services/web/app/src/router.js index c2e149aa03..8de376a984 100644 --- a/services/web/app/src/router.js +++ b/services/web/app/src/router.js @@ -1324,28 +1324,6 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) { } ) - webRouter.get('/no-cache', function (req, res, next) { - res.header('Cache-Control', 'max-age=0') - res.sendStatus(404) - }) - - webRouter.get('/oops-express', (req, res, next) => - next(new Error('Test error')) - ) - webRouter.get('/oops-internal', function (req, res, next) { - throw new Error('Test error') - }) - webRouter.get('/oops-mongo', (req, res, next) => - require('./models/Project').Project.findOne({}, function () { - throw new Error('Test error') - }) - ) - - privateApiRouter.get('/opps-small', function (req, res, next) { - logger.err('test error occured') - res.sendStatus(200) - }) - webRouter.post('/error/client', function (req, res, next) { logger.warn( { err: req.body.error, meta: req.body.meta },