良い感じに
This commit is contained in:
@@ -35,7 +35,7 @@ const router = new Router();
|
||||
/**
|
||||
* Register endpoint handlers
|
||||
*/
|
||||
endpoints.forEach(endpoint => endpoint.withFile
|
||||
endpoints.forEach(endpoint => endpoint.meta.withFile
|
||||
? router.post(`/${endpoint.name}`, upload.single('file'), handler.bind(null, endpoint))
|
||||
: router.post(`/${endpoint.name}`, handler.bind(null, endpoint))
|
||||
);
|
||||
|
Reference in New Issue
Block a user