Explorar el Código

use ApiErrorHandler on public api

Brian Gough hace 9 años
padre
commit
0ae93db08b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      services/web/app/coffee/infrastructure/Server.coffee

+ 1 - 0
services/web/app/coffee/infrastructure/Server.coffee

@@ -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)