Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. /*
  2. To get the raw body on your loopback application modify the parse middleware step and add the following.
  3. This way you don't need to have a custom root setup.
  4.  
  5. */
  6.  
  7. {
  8. "parse": {
  9. "body-parser#raw": {
  10. "methods": [
  11. "POST"
  12. ],
  13. "params": {
  14. "type": "application/json"
  15. },
  16. "paths": [
  17. "path1 goes here",
  18. "another path here"
  19. ]
  20. },
  21. "body-parser#json": {},
  22. "body-parser#urlencoded": {
  23. "params": {
  24. "extended": true
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement