diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-16 03:43:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-16 03:43:36 +0900 |
| commit | 1744316656f742dddc6f314aa8bc3289714f1311 (patch) | |
| tree | fa5c69840097adc70a0f2e3278c52dfacf5efbf1 /src/server/api/index.ts | |
| parent | 良い感じに (diff) | |
| download | sharkey-1744316656f742dddc6f314aa8bc3289714f1311.tar.gz sharkey-1744316656f742dddc6f314aa8bc3289714f1311.tar.bz2 sharkey-1744316656f742dddc6f314aa8bc3289714f1311.zip | |
良い感じに
Diffstat (limited to 'src/server/api/index.ts')
| -rw-r--r-- | src/server/api/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/index.ts b/src/server/api/index.ts index 004c21b821..e89988efd0 100644 --- a/src/server/api/index.ts +++ b/src/server/api/index.ts @@ -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)) ); |