Skip to content

Commit

Permalink
fix: Remove redundant handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
amattu2 committed Oct 13, 2024
1 parent a04497f commit 41ab063
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/backend/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import withVinValidation from './middleware/withVinValidation';
/**
* Base API router for the application
*/
const router: IttyRouterType = IttyRouter({
404: () => error(404, 'Not found'),
500: () => error(500, 'Internal server error'),
});
const router: IttyRouterType = IttyRouter();

router
.get('/api/v1/vin/:vin/golo365', withParams, withVinValidation, ({ vin }) => ({ message: `${vin}`}))
Expand Down

0 comments on commit 41ab063

Please sign in to comment.