1.0.19 • Published 5 years ago
@shopup/middlewares v1.0.19
Express middlewares
errorHandler
Middleware that logs and handle errors. Use it after all routes.
Usage
import { errorHandler } from '@shopup/middlewares';
app.use(errorHandler)
healthCheck
Add a /health-check route that just returns status 204.
Usage
import { healthCheck } from '@shopup/middlewares';
app.use(healthCheck)