Refactor: withFile --> requireFile

This commit is contained in:
syuilo 2018-07-25 07:18:50 +09:00
parent ad5a7e9d70
commit dbf335a05d
4 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ const router = new Router();
/**
* Register endpoint handlers
*/
endpoints.forEach(endpoint => endpoint.meta.withFile
endpoints.forEach(endpoint => endpoint.meta.requireFile
? router.post(`/${endpoint.name}`, upload.single('file'), handler.bind(null, endpoint))
: router.post(`/${endpoint.name}`, handler.bind(null, endpoint))
);