mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-14 23:45:30 +00:00
use ApiErrorHandler on public api
This commit is contained in:
parent
1dbeebabd2
commit
0ae93db08b
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ enableWebRouter = Settings.web?.enableWebRouter
|
|||
if enableWebRouter or notDefined(enableWebRouter)
|
||||
logger.info("providing web router");
|
||||
app.use(publicApiRouter) # public API goes with web router for public access
|
||||
app.use(ErrorController.handleApiError)
|
||||
app.use(webRouter)
|
||||
app.use(ErrorController.handleError)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue