Skip to content

Commit

Permalink
[change] #32 validation to be used more explictly
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Feb 2, 2024
1 parent 50c9700 commit 04e2761
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/controller/write.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ async function errorChecking (req:Request, res:Response, next:NextFunction) {


const router = express.Router();
router.use(entry.validate);

router.get('/', errorChecking);
router.head('/', errorChecking);
router.get('/', entry.validate, errorChecking);
router.head('/', entry.validate, errorChecking);

export default router;

0 comments on commit 04e2761

Please sign in to comment.