ajuste de hooks

This commit is contained in:
Jordan
2026-03-21 10:28:42 +00:00
parent e43e9167ad
commit a63dac88d3

View File

@@ -6,13 +6,15 @@ Hooks are PHP files in the `hooks/` directory that execute server-side logic. Th
### Testing Hooks
To test hooks, the site's Docker container must be running. Make a curl request to the Docker URL with the hook path. For example, if a hook is located at `hooks/example_hook/`:
To test hooks, the site's Docker container must be running. Make a curl request to the Docker URL with the hook path. For example, if a hook is named `hooks.example_hook.php`:
```bash
curl http://{DOCKER_URL_AND_PORT}/hooks/example_hook/
```
Replace `{DOCKER_URL_AND_PORT}` with your local Docker address (e.g., `localhost:8080`).
Replace `{DOCKER_URL_AND_PORT}` with your local Docker address (e.g., `localhost:8080`) and parse hook name for url endpoint.
Do not use X-Hooks-Token because its not needed on developer environment.
### How to Call Hooks