0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/web/api
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
..
canary Fixed api-version-compatibility-service init error 2022-05-02 19:05:14 +01:00
middleware Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
testmode Added guards against parentPort being null 2021-06-29 12:14:48 +01:00
app.js Moved content-version middleware onto api app 2022-05-02 19:05:14 +01:00
index.js Renamed app related files+variables for clarity 2020-04-27 17:50:08 +01:00