0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/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
utils
validators Replaced i18n.t w/ tpl helper in validators/input/ (#13460) 2021-10-06 10:17:42 +01:00
frame.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
headers.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
http.js Moved content-version middleware onto api app 2022-05-02 19:05:14 +01:00
index.js
pipeline.js Fixed JSDoc apiType in the frame pipeline 2021-08-13 10:08:50 +04:00