From a63dac88d3f7ae3a0bc70ac0d9405ab97c5b4e01 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sat, 21 Mar 2026 10:28:42 +0000 Subject: [PATCH] ajuste de hooks --- docs/hooks-and-api.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/hooks-and-api.md b/docs/hooks-and-api.md index 99f105d..8e2b32c 100644 --- a/docs/hooks-and-api.md +++ b/docs/hooks-and-api.md @@ -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