Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- To get the raw body on your loopback application modify the parse middleware step and add the following.
- This way you don't need to have a custom root setup.
- */
- {
- "parse": {
- "body-parser#raw": {
- "methods": [
- "POST"
- ],
- "params": {
- "type": "application/json"
- },
- "paths": [
- "path1 goes here",
- "another path here"
- ]
- },
- "body-parser#json": {},
- "body-parser#urlencoded": {
- "params": {
- "extended": true
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement