the statusphere demo reworked into a vite/react app in a monorepo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at f8cd2f7ad8d8c17edfbc797f2515543c72944c8a 12 lines 331 B view raw
1import type { ErrorRequestHandler, RequestHandler } from 'express' 2 3const unexpectedRequest: RequestHandler = (_req, res) => { 4 res.sendStatus(404) 5} 6 7const addErrorToRequestLog: ErrorRequestHandler = (err, _req, res, next) => { 8 res.locals.err = err 9 next(err) 10} 11 12export default () => [unexpectedRequest, addErrorToRequestLog]