mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
082410f6bb
refs #9866 - we would like to avoid doing for each api version e.g. testUtils.API.getQueryUrl('webhooks/', v2) testUtils.API.getQueryUrl('webhooks/', v3, admin) - the URL should be easily accessible per api version routing folder - so i thought it makes the most sense to add a local utils file e.g. localUtils.API.getQueryUrl('webhooks/') => returns target api url for target api folder by default e.g. localUtils.API.content.getQueryUrl('webhooks/') => returns content api url for target api folder - it also makes it easy for us to copy the routing tests over without changing anything - we just need to provide the local utility |
||
---|---|---|
.. | ||
routes |