Просмотр исходного кода

Merge pull request #18164 from overleaf/rd-remove-endpoints

[web] Remove publicly accessible endpoints

GitOrigin-RevId: c8e57faf6418274cac36b6e721c97a4ca70a1193
Rebeka Dekany 2 лет назад
Родитель
Сommit
62c2937dac
1 измененных файлов с 0 добавлено и 22 удалено
  1. 0 22
      services/web/app/src/router.js

+ 0 - 22
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 },