0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test
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
..
e2e-api Moved content-version middleware onto api app 2022-05-02 19:05:14 +01:00
e2e-browser Added note about installing the E2E browsers 2022-02-22 10:20:40 +01:00
e2e-frontend Removed res.locals.apiVersion 2022-04-28 15:35:28 +01:00
e2e-server Added MRR stats service and endpoint (#14427) 2022-04-08 09:18:04 +02:00
integration Removed backwards compatibility for ghost_head and ghost_foot settings 2022-04-28 15:37:14 +01:00
regression Fixed lint error 2022-04-28 15:37:14 +01:00
unit Moved content-version middleware onto api app 2022-05-02 19:05:14 +01:00
utils Switched gscan to validate against v5 set of rules 2022-05-02 20:56:25 +08:00
.eslintignore Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
.eslintrc.js
.jshintrc