Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
madebyzak committed Feb 10, 2025
1 parent 2c76197 commit 0f994af
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ export default function createApp(services: Services): express.Application {

app.use(routes(services))

if (process.env.NODE_ENV === 'development') {
app.get('/mock-session', (req, res) => {
req.session.applicationData = {
type: {
value: 'application-type',
name: 'Application Type',
},
}
})
}

app.use((req, res, next) => next(createError(404, 'Not found')))
app.use(errorHandler(process.env.NODE_ENV === 'production'))

Expand Down

0 comments on commit 0f994af

Please sign in to comment.