ajuste de hooks
This commit is contained in:
@@ -6,13 +6,15 @@ Hooks are PHP files in the `hooks/` directory that execute server-side logic. Th
|
|||||||
|
|
||||||
### Testing Hooks
|
### 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
|
```bash
|
||||||
curl http://{DOCKER_URL_AND_PORT}/hooks/example_hook/
|
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
|
### How to Call Hooks
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user