mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03:00
c017174c9a
- if the API controller endpoint is a function, we early return as we expect the function to handle the response but we still ended up calculating the headers beforehand, only to be thrown away - this commit moves the header fetching code down in the flow so it's only executed when needed - this doesn't really have a big effect for us because 99% of our controllers follow the object pattern |
||
---|---|---|
.. | ||
serializers | ||
utils | ||
validators | ||
api-framework.js | ||
frame.js | ||
headers.js | ||
http.js | ||
pipeline.js |