diff --git a/src/controller/write.ts b/src/controller/write.ts index e4c6ef0..dc0658d 100644 --- a/src/controller/write.ts +++ b/src/controller/write.ts @@ -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; \ No newline at end of file