-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix caip10 and add body parser middleware #131
Conversation
apps/policy-engine/src/main.ts
Outdated
map((app) => { | ||
app.use(json({ limit: '50mb' })) | ||
app.use(urlencoded({ extended: true, limit: '50mb' })) | ||
return app | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- What's that for, precisely?
- Would you mind adding in it in a high-order function like the others, please?
- I feel it's doing two things: with json limit and with url encoding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done @wcalderipe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So as you know, the PR's title doesn't match the changes. Suggestion: Add body parser middleware in the policy engine.
apps/policy-engine/src/main.ts
Outdated
} | ||
|
||
const withUrlEncoded = (app: INestApplication): INestApplication => { | ||
app.use(urlencoded({ extended: true, limit: '50mb' })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.