mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
58b9aea00d
refs https://github.com/TryGhost/Ghost/issues/11083 - the `/api/v2/admin/site/` endpoint is "public" and as such was not using the `authAdminApi` middleware stack so it did not act like other API endpoints with protocol or trailing-slash redirects - adds `publicAdminApi` middleware array and uses it for the `/site/` endpoint in both v2 and canary API versions |
||
---|---|---|
.. | ||
adapters | ||
api | ||
config | ||
data | ||
lib | ||
models | ||
public | ||
services | ||
translations | ||
views | ||
web | ||
analytics-events.js | ||
ghost-server.js | ||
index.js | ||
overrides.js | ||
update-check.js |