mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
[monorepo] remove endpoints for generating a fake error (#31679)
GitOrigin-RevId: d424881e6ebca157b81344705670021677f856de
This commit is contained in:
@@ -198,17 +198,6 @@ app.get(
|
||||
}
|
||||
)
|
||||
|
||||
app.get('/oops', function (req, res, next) {
|
||||
logger.error({ err: 'hello' }, 'test error')
|
||||
res.send('error\n')
|
||||
})
|
||||
|
||||
app.get('/oops-internal', function (req, res, next) {
|
||||
setTimeout(function () {
|
||||
throw new Error('Test error')
|
||||
}, 1)
|
||||
})
|
||||
|
||||
app.get('/status', (req, res, next) => res.send('CLSI is alive\n'))
|
||||
|
||||
Settings.processTooOld = false
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import OError from '@overleaf/o-error'
|
||||
import * as HttpController from './HttpController.js'
|
||||
|
||||
export function initialize(app) {
|
||||
@@ -88,10 +87,6 @@ export function initialize(app) {
|
||||
|
||||
app.get('/status', (req, res, next) => res.send('project-history is up'))
|
||||
|
||||
app.get('/oops', function (req, res, next) {
|
||||
throw new OError('dummy test error')
|
||||
})
|
||||
|
||||
app.get('/check_lock', HttpController.checkLock)
|
||||
|
||||
app.get('/health_check', HttpController.healthCheck)
|
||||
|
||||
Reference in New Issue
Block a user