Skip to content

Commit

Permalink
🔨 set options on apiRouter after FunctionRouter removal
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Jan 10, 2025
1 parent 3cc565e commit 6a2adb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adminSiteServer/apiRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ import {
import e, { Router } from "express"

const apiRouter = Router()

apiRouter.use(e.urlencoded({ extended: true }))
// Parse incoming requests with JSON payloads http://expressjs.com/en/api.html
apiRouter.use(e.json({ limit: "50mb" }))
// Bulk chart update routes
patchRouteWithRWTransaction(
apiRouter,
Expand Down

0 comments on commit 6a2adb3

Please sign in to comment.