Skip to content

Fuxt API - Project Images Endpoint - #118

Closed
dChiamp wants to merge 1 commit into
mainfrom
project-images
Closed

Fuxt API - Project Images Endpoint#118
dChiamp wants to merge 1 commit into
mainfrom
project-images

Conversation

@dChiamp

@dChiamp dChiamp commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What

Commits the /fuxt/v1/project-images REST 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 include param work) replaced the plugin folder from the repo, which removed class-rest-project-images-controller.php while the deployed class-plugin.php still instantiated it — causing a site-wide fatal:

Uncaught Error: Class "FuxtApi\REST_Project_Images_Controller" not found in includes/class-plugin.php:27

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 in Plugin->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 main before this lands will re-break production the same way.

@dChiamp

dChiamp commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Consolidated into #117 for a single deploy.

@dChiamp dChiamp closed this Jul 13, 2026
@dChiamp
dChiamp deleted the project-images branch July 13, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant