vue-storefront icon indicating copy to clipboard operation
vue-storefront copied to clipboard

feat: add body parser to cache

Open lsliwaradioluz opened this issue 2 years ago • 0 comments

Description

While adding the cache package to a fresh VSF project, the invalidation endpoint does not work.

image

That's because we lack bodyParser.

How Has This Been Tested?

Screenshots:

After adding the bodyParser, our invalidation endpoint works correctly: image

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [x] I have read the CONTRIBUTING document.

Changelog

  • [ ] I have updated the Changelog (V1) v2 and mentioned all breaking changes in the public API.
  • [ ] I have documented all new public APIs and made changes to existing docs mentioning the parts I've changed so they're up to date.

Tests

  • [ ] I have written test cases for my code
  • [ ] I have tested my Pull Request on production build and (to my knowledge) it works without any issues
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

I tested manually my code, and it works well with both:

  • [ ] Default Theme
  • [ ] Capybara Theme

Code standards

  • [ ] My code follows the code style of this project.

Docs

  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.

lsliwaradioluz avatar Mar 15 '22 09:03 lsliwaradioluz