Skip to content

Commit d565422

Browse files
committed
feat(upload): file upload endpoint
Adds an upload endpoint to our API. This has been implemented using multer as a middleware for file validations and restrictions on file size. Basic happy/unhappy flow tests pass.
1 parent d9c0a6b commit d565422

File tree

9 files changed

+461
-11
lines changed

9 files changed

+461
-11
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"kysely": "^0.27.4",
6464
"lodash": "^4.17.21",
6565
"lru-cache": "^11.0.0",
66+
"multer": "1.4.5-lts.1",
6667
"node-cron": "^3.0.3",
6768
"pg": "^8.12.0",
6869
"reflect-metadata": "^0.2.2",
@@ -95,6 +96,7 @@
9596
"@swc/cli": "^0.3.12",
9697
"@swc/core": "^1.4.15",
9798
"@types/body-parser": "^1.19.5",
99+
"@types/multer": "^1.4.12",
98100
"@types/node-cron": "^3.0.11",
99101
"@types/pg": "^8.11.6",
100102
"@types/sinon": "^17.0.2",

pnpm-lock.yaml

Lines changed: 97 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)