Ghost/test/unit/api/shared
Hannah Wolfe c6ae3c30d8 Moved content-version middleware onto api app
closes: https://github.com/TryGhost/Toolbox/issues/319

- at the moment, content-version is only set if one of our endpoints touches the request
  - this was demonstrated in the e2e tests, where many of the tests that set accept-version did not receive accept-version
- by moving the middleware out of the http module and onto the api app we ensure it's always done
- I put the code in the api-version-compatibility service to keep it all co-located
- ideally we will refactor that service slightly so it only exposes middleware
2022-05-02 19:05:14 +01:00
..
serializers Improved behaviour of default and all handlers 2022-03-29 13:44:21 +01:00
util Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
validators Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
frame.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
headers.test.js 🔥 Removed versioned APIs 2022-04-28 15:37:09 +01:00
http.test.js Moved content-version middleware onto api app 2022-05-02 19:05:14 +01:00
pipeline.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00