Fuxt API - Project Images Endpoint - #118
Closed
dChiamp wants to merge 1 commit into
Closed
Conversation
Contributor
Author
|
Consolidated into #117 for a single deploy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Commits the
/fuxt/v1/project-imagesREST endpoint (upload + list, API-key auth, rate limiting) that has been running on Pearl's production WP install but was never committed to the repo.Why
Production was deployed from a working tree containing this code uncommitted. Today's plugin update (deploying the
includeparam work) replaced the plugin folder from the repo, which removedclass-rest-project-images-controller.phpwhile the deployedclass-plugin.phpstill instantiated it — causing a site-wide fatal:The immediate outage was fixed by restoring the file on the server. This PR makes the repo the source of truth again so future deploys from GitHub include the endpoint.
Files
includes/class-rest-project-images-controller.php— the controller (previously untracked)includes/class-plugin.php— registers it inPlugin->init()Note for reviewer
This code was authored outside this PR (it was found uncommitted in a local working tree and running in production). Worth a quick sanity review of the auth/rate-limit logic before merging — but merging promptly matters, since any deploy from
mainbefore this lands will re-break production the same way.